PostSharp5.0/API Reference/Post­Sharp.​Reflection Namespace/Semantics Enumeration

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: 5.0.55.0 (5.0.55.0)
Syntax
C#
[FlagsAttribute]
public enum Semantics
Members
  Member nameValueDescription
InstanceConstructor1 Explicitly-defined instance constructor.
StaticConstructor2 Static constructor.
DefaultConstructor4194304 Default instance constructor (compiler-implemented).
Event1 Normal event.
OtherCompilerGeneratedEvent2 Any compiler-generated event that does not have another semantic in the current enumeration.
EventAdder4 Event adder.
EventRemover8 Event remover.
EventRaiser65536 Event raiser (does not exist in C#).
AnyEventAccessor65548 Event adder, remover, or raiser.
PropertyGetter16 Property getter.
PropertySetter32 Property setter.
AnyPropertyAccessor48 Property getter or setter.
Operator64 Operator (unary, binary, implicit, or explicit).
AnonymousMethod128 Anonymous method.
LocalFunction256 Local function.
Method512 Normal method.
OtherCompilerGeneratedMethod1048576 Any compiler-generated method that does not have another semantic in the current enumeration.
Finalizer8192 Finalizer.
OtherSpecialMethod131072 Any special method (with either the SpecialName or RTSpecialName set) that does not have a semantic in the current enumeration.
OtherCompilerGeneratedField2097152 Any compiler-generated field that does not have another semantic in the current enumeration.
Field1024 Normal field.
PropertyBackingField262144 Field backing an automatic property.
EventBackingField524288 Field backing an automatic event.
AnonymousMethodCacheField2048 Compiler-generated field used as a cache for anonymous methods.
Property4096 Normal property.
OtherCompilerGeneratedProperty-2147483648 Any compiler-generated property that does not have another semantic in the current enumeration.
Type8388608 Normal type.
ComClass16384 VB COM Class.
CompilerGeneratedTypeMember32768 Any member of a compiler-generated type.
CompilerGeneratedMethodParameter16777216 Any parameter of a compiler-generated method.
Parameter33554432 Parameter.
OtherDeclaration67108864 Any declaration not represented in this enumeration.
CodeContractsField134217728 Field supporting Code Contracts.
AsyncStateMachineType268435456 Type implementing an async state machine.
IteratorStateMachineType536870912 Type implementing an iterator state machine.
OtherCompilerGeneratedType1073741824 Any compiler-generated type that does not have another semantic in the current enumeration.
See Also