Namespace: Metalama.Extensions.DependencyInjection.Implementation
Assembly: Metalama.Extensions.DependencyInjection.dll
Syntax
[CompileTime]
public static class SuppressionHelper
Methods
Name | Description |
---|---|
SuppressNonNullableFieldMustContainValue(IAspectBuilder, IFieldOrProperty, IEnumerable<IConstructor>) | Suppresses the warning CS8618 ("Non-nullable variable must contain a non-null value when exiting constructor.") on selected constructors for a member that is being introduced, if necessary. This is useful for design-time diagnostics. |
SuppressUnusedWarnings(IAspectBuilder, IFieldOrProperty) | Suppress the warning CS0169 ("The private field is never used.") on a member that is being introduced. This is primarily useful for design-time. |