Open sandboxFocus

Enum MethodBodyElementKind

Enumeration of kinds of syntax elements (IMethodBodyElement).

Namespace: PostSharp.Reflection.MethodBody
Assembly: PostSharp.dll
Syntax
public enum MethodBodyElementKind

Fields

Name Description
Add

Addition (IBinaryExpression).

AddChecked

Addition with overflow checking (IBinaryExpression).

AddressOf

Referencing operator (& in C#, see IUnaryExpression).

And

Bitwise And (IBinaryExpression).

ArgumentList

Get argument list (IZeroaryExpression).

ArrayIndex

Element of an array (IBinaryExpression where Left is the array and Right is the index).

ArrayLength

Length of an array (IUnaryExpression).

Assign

Assignment (IBinaryExpression).

Block

Instruction block (IBlockExpression).

Box

Box (IUnaryExpression).

Cast

Cast (IUnaryExpression where ReturnType is the destination type).

CheckFinite

Check that the value is finite (IUnaryExpression).

Conditional

Conditional expression (IConditionalExpression).

Constant

Constant (IConstantExpression).

Convert

Convert to integral type (IUnaryExpression).

ConvertChecked

Convert to integral type with overflow check (IUnaryExpression).

CopyBuffer

Copy buffer (ICopyBufferExpression).

DefaultValue

Default value for given type (IMetadataExpression).

Different

Different (IBinaryExpression).

Divide

Division (IBinaryExpression).

Equal

Equal (IBinaryExpression).

Field

Field (IFieldExpression).

Goto

Unconditional branch (IGotoExpression).

GreaterThan

Greater than (IBinaryExpression).

GreaterThanOrEqual

Greater than (IBinaryExpression).

InitBuffer

Initialize buffer (IInitBufferExpression).

LessThan

Less than (IBinaryExpression).

LessThanOrEqual

Less than or equal (IBinaryExpression).

LoadToken

Load metadata token (IMetadataExpression).

LocalAlloc

Allocate on local stack (IUnaryExpression).

LocalVariableDefinition

Local variable definition (ILocalVariable).

MakeTypedReference

Make typed reference (IUnaryExpression).

MethodBody

Method body (IMethodBody).

MethodCall

Method call (IMethodCallExpression).

MethodPointer

Get pointer of method (IMethodPointerExpression).

Modulo

Modulo (IBinaryExpression).

Multiply

Multiply (IBinaryExpression).

MultiplyChecked

Multiply with overflow checking (IBinaryExpression).

Negate

Bitwise negation (IUnaryExpression).

NewArray

Create new array (INewArrayExpression).

NewObject

Creates new object (INewObjectExpression).

Not

Logical negation (IUnaryExpression).

Or

Bitwise Or (IBinaryExpression).

Parameter

Parameter (IParameterExpression).

Rethrow

Re-throw exception (IZeroaryExpression).

Return

Return (IUnaryExpression).

SafeCast

Safe cast (IUnaryExpression where ReturnType is the destination type).

ShiftLeft

Bitwise shift to left (IBinaryExpression).

ShiftRight

Bitwise shift to right (IBinaryExpression).

SizeOf

Size of type (IMetadataExpression).

Statement

Statement (IStatementExpression).

Substract

Substract (IBinaryExpression).

SubstractChecked

Substract with overflow checking (IBinaryExpression).

Switch

Switch (ISwitchExpression).

This

Current object (this keyword in C#, IZeroaryExpression).

Throw

Throw exception (IUnaryExpression).

TypedReferenceType

Get type of typed reference (IUnaryExpression).

TypedReferenceValue

Get value of typed reference (IUnaryExpression).

Unbox

Unbox (IUnaryExpression).

ValueOf

Dereferencing operator (* in C#, see IUnaryExpression).

Variable

Local variable expression (ILocalVariableExpression).

Xor

Bitwise And (IBinaryExpression).