MetalamaAPI documentationAspect APIMetalama.​Framework.​CodeIDeclaration­OriginIs­Compiler­Generated
Open sandboxFocus

IDeclarationOrigin.IsCompilerGenerated Property

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