MetalamaAPI documentationAspect APIMetalama.​Framework.​CodeIDeclaration­Origin
Open sandboxFocus

IDeclarationOrigin Interface

Represents the origin of the code, i.e. the artefact or function created the declaration.

Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
public interface IDeclarationOrigin


Name Description

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


Gets the kind of origin.

See Also