Enumerates the possible semantics of a declaration in the source programming language. For instance an MSIL method can be in C# a property getter, an operator, an anonymous method, and so on.
Namespace: PostSharp.Reflection
Assembly: PostSharp.dll
Syntax
[Flags]
public enum Semantics : long
Fields
Name | Description |
---|---|
AnonymousMethod | Anonymous method. |
AnonymousMethodCacheField | Compiler-generated field used as a cache for anonymous methods. |
AnyEventAccessor | Event adder, remover, or raiser. |
AnyPropertyAccessor | Property getter or setter. |
AsyncStateMachineType | Type implementing an async state machine. |
CodeContractsField | Field supporting Code Contracts. |
ComClass | VB COM Class. |
CompilerGeneratedMethodParameter | Any parameter of a compiler-generated method. |
CompilerGeneratedTypeMember | Any member of a compiler-generated type. |
DefaultConstructor | Default instance constructor (compiler-implemented). |
Event | Normal event. |
EventAdder | Event adder. |
EventBackingField | Field backing an automatic event. |
EventRaiser | Event raiser (does not exist in C#). |
EventRemover | Event remover. |
Field | Normal field. |
Finalizer | Finalizer. |
InstanceConstructor | Explicitly-defined instance constructor. |
IteratorStateMachineType | Type implementing an iterator state machine. |
LocalFunction | Local function. |
Method | Normal method. |
Operator | Operator (unary, binary, implicit, or explicit). |
OtherCompilerGeneratedEvent | Any compiler-generated event that does not have another semantic in the current enumeration. |
OtherCompilerGeneratedField | Any compiler-generated field that does not have another semantic in the current enumeration. |
OtherCompilerGeneratedMethod | Any compiler-generated method that does not have another semantic in the current enumeration. |
OtherCompilerGeneratedProperty | Any compiler-generated property that does not have another semantic in the current enumeration. |
OtherCompilerGeneratedType | Any compiler-generated type that does not have another semantic in the current enumeration. |
OtherDeclaration | Any declaration not represented in this enumeration. |
OtherSpecialMethod | Any special method (with either the SpecialName or RTSpecialName set) that does not have a semantic in the current enumeration. |
Parameter | Parameter. |
Property | Normal property. |
PropertyBackingField | Field backing an automatic property. |
PropertyGetter | Property getter. |
PropertySetter | Property setter. |
StaticConstructor | Static constructor. |
Type | Normal type. |