MethodBodyElementKind Enumeration |
Enumeration of kinds of syntax elements (IMethodBodyElement).
Namespace: PostSharp.Reflection.MethodBody
Assembly: PostSharp (in PostSharp.dll) Version: 6.10.14.0 (6.10.14.0)
C#
public enum MethodBodyElementKind
Member name | Value | Description | |
---|---|---|---|
Add | 0 | Addition (IBinaryExpression). | |
AddChecked | 1 | Addition with overflow checking (IBinaryExpression). | |
And | 2 | Bitwise And (IBinaryExpression). | |
ArrayIndex | 3 | Element of an array (IBinaryExpression where Left is the array and Right is the index). | |
ArrayLength | 4 | Length of an array (IUnaryExpression). | |
Assign | 5 | Assignment (IBinaryExpression). | |
Goto | 6 | Unconditional branch (IGotoExpression). | |
Variable | 7 | Local variable expression (ILocalVariableExpression). | |
Conditional | 8 | Conditional expression (IConditionalExpression). | |
Cast | 9 | Cast (IUnaryExpression where ReturnType is the destination type). | |
Divide | 10 | Division (IBinaryExpression). | |
LessThan | 11 | Less than (IBinaryExpression). | |
LessThanOrEqual | 12 | Less than or equal (IBinaryExpression). | |
Modulo | 13 | Modulo (IBinaryExpression). | |
MultiplyChecked | 14 | Multiply with overflow checking (IBinaryExpression). | |
Multiply | 15 | Multiply (IBinaryExpression). | |
GreaterThan | 16 | Greater than (IBinaryExpression). | |
GreaterThanOrEqual | 17 | Greater than (IBinaryExpression). | |
Substract | 18 | Substract (IBinaryExpression). | |
SubstractChecked | 19 | Substract with overflow checking (IBinaryExpression). | |
Parameter | 20 | Parameter (IParameterExpression). | |
This | 21 | Current object (this keyword in C#, IZeroaryExpression). | |
AddressOf | 22 | Referencing operator (& in C#, see IUnaryExpression). | |
Constant | 23 | Constant (IConstantExpression). | |
Equal | 24 | Equal (IBinaryExpression). | |
Not | 25 | Logical negation (IUnaryExpression). | |
Different | 26 | Different (IBinaryExpression). | |
ValueOf | 27 | Dereferencing operator (* in C#, see IUnaryExpression). | |
Or | 28 | Bitwise Or (IBinaryExpression). | |
Xor | 29 | Bitwise And (IBinaryExpression). | |
ShiftLeft | 30 | Bitwise shift to left (IBinaryExpression). | |
ShiftRight | 31 | Bitwise shift to right (IBinaryExpression). | |
Negate | 32 | Bitwise negation (IUnaryExpression). | |
SafeCast | 33 | Safe cast (IUnaryExpression where ReturnType is the destination type). | |
Unbox | 34 | Unbox (IUnaryExpression). | |
Throw | 35 | Throw exception (IUnaryExpression). | |
Field | 36 | Field (IFieldExpression). | |
Box | 37 | Box (IUnaryExpression). | |
NewArray | 38 | Create new array (INewArrayExpression). | |
TypedReferenceValue | 39 | Get value of typed reference (IUnaryExpression). | |
CheckFinite | 40 | Check that the value is finite (IUnaryExpression). | |
MakeTypedReference | 41 | Make typed reference (IUnaryExpression). | |
ArgumentList | 42 | Get argument list (IZeroaryExpression). | |
MethodPointer | 43 | Get pointer of method (IMethodPointerExpression). | |
LocalAlloc | 44 | Allocate on local stack (IUnaryExpression). | |
DefaultValue | 45 | Default value for given type (IMetadataExpression). | |
CopyBuffer | 46 | Copy buffer (ICopyBufferExpression). | |
InitBuffer | 47 | Initialize buffer (IInitBufferExpression). | |
LoadToken | 48 | Load metadata token (IMetadataExpression). | |
SizeOf | 49 | Size of type (IMetadataExpression). | |
TypedReferenceType | 50 | Get type of typed reference (IUnaryExpression). | |
ConvertChecked | 51 | Convert to integral type with overflow check (IUnaryExpression). | |
Convert | 52 | Convert to integral type (IUnaryExpression). | |
MethodCall | 53 | Method call (IMethodCallExpression). | |
Return | 54 | Return (IUnaryExpression). | |
NewObject | 55 | Creates new object (INewObjectExpression). | |
Switch | 56 | Switch (ISwitchExpression). | |
Block | 57 | Instruction block (IBlockExpression). | |
MethodBody | 58 | Method body (IMethodBody). | |
LocalVariableDefinition | 59 | Local variable definition (ILocalVariable). | |
Statement | 60 | Statement (IStatementExpression). | |
Rethrow | 61 | Re-throw exception (IZeroaryExpression). |