Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Code / IDeclaration­Origin / Is­Compiler­Generated

Property IsCompilerGenerated

IsCompilerGenerated

Gets a value indicating whether the declaration or its parent has an CompilerGeneratedAttribute regardless of the origin Kind. This property is currently false for declarations introduced by aspects because Metalama does not add the CompilerGeneratedAttribute to introduced declarations. Check the Kind property to skip declarations added by aspects.

Declaration
bool IsCompilerGenerated { get; }
Property Value
Type Description
Boolean