PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Infrastructure Namespace / IType­Initialization­Client Interface / IType­Initialization­Client Properties / IType­Initialization­Client.​Is­Before­Field­Init­Supported Property

ITypeInitializationClient.IsBeforeFieldInitSupported Property

Determines whether the client is compatible with the BeforeFieldInit class-level specifier. If true, then PostSharp doesn't add or remove the beforefieldinit specifier - it keeps whatever the C# compiler emitted. If false, then PostSharp removes the beforefieldinit specifier from the class if it had one. You cannot add beforefieldinit to a class that didn't have one.

Namespace:  PostSharp.Sdk.AspectInfrastructure
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
bool IsBeforeFieldInitSupported { get; }

Property Value

Type: Boolean
See Also