Semantics Enumeration |
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 (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
[FlagsAttribute] public enum Semantics
Member name | Value | Description | |
---|---|---|---|
InstanceConstructor | 1 | Explicitly-defined instance constructor. | |
StaticConstructor | 2 | Static constructor. | |
DefaultConstructor | 4194304 | Default instance constructor (compiler-implemented). | |
Event | 4294967296 | Normal event. | |
OtherCompilerGeneratedEvent | 8589934592 | Any compiler-generated event that does not have another semantic in the current enumeration. | |
EventAdder | 4 | Event adder. | |
EventRemover | 8 | Event remover. | |
EventRaiser | 65536 | Event raiser (does not exist in C#). | |
AnyEventAccessor | 65548 | Event adder, remover, or raiser. | |
PropertyGetter | 16 | Property getter. | |
PropertySetter | 32 | Property setter. | |
AnyPropertyAccessor | 48 | Property getter or setter. | |
Operator | 64 | Operator (unary, binary, implicit, or explicit). | |
AnonymousMethod | 128 | Anonymous method. | |
LocalFunction | 256 | Local function. | |
Method | 512 | Normal method. | |
OtherCompilerGeneratedMethod | 1048576 | Any compiler-generated method that does not have another semantic in the current enumeration. | |
Finalizer | 8192 | Finalizer. | |
OtherSpecialMethod | 131072 | Any special method (with either the SpecialName or RTSpecialName set) that does not have a semantic in the current enumeration. | |
OtherCompilerGeneratedField | 2097152 | Any compiler-generated field that does not have another semantic in the current enumeration. | |
Field | 1024 | Normal field. | |
PropertyBackingField | 262144 | Field backing an automatic property. | |
EventBackingField | 524288 | Field backing an automatic event. | |
AnonymousMethodCacheField | 2048 | Compiler-generated field used as a cache for anonymous methods. | |
Property | 4096 | Normal property. | |
OtherCompilerGeneratedProperty | -2147483648 | Any compiler-generated property that does not have another semantic in the current enumeration. | |
Type | 8388608 | Normal type. | |
ComClass | 16384 | VB COM Class. | |
CompilerGeneratedTypeMember | 32768 | Any member of a compiler-generated type. | |
CompilerGeneratedMethodParameter | 16777216 | Any parameter of a compiler-generated method. | |
Parameter | 33554432 | Parameter. | |
OtherDeclaration | 67108864 | Any declaration not represented in this enumeration. | |
CodeContractsField | 134217728 | Field supporting Code Contracts. | |
AsyncStateMachineType | 268435456 | Type implementing an async state machine. | |
IteratorStateMachineType | 536870912 | Type implementing an iterator state machine. | |
OtherCompilerGeneratedType | 1073741824 | Any compiler-generated type that does not have another semantic in the current enumeration. |