Open sandboxFocus

Enum MethodUsageInstructions

Instructions whose operands can reference a declaration.

Namespace: PostSharp.Reflection
Assembly: PostSharp.dll
Syntax
[Flags]
public enum MethodUsageInstructions

Fields

Name Description
Call

Call to a static or sealed method.

CallVirtual

Call to a virtual method.

Cast

Type casting.

IsInstance

"Safe" type casting (as or is in C#).

LoadField

Get field value.

LoadFieldAddress

Get field address.

LoadMetadata

Load the metadata token (for instance typeof).

LoadMethodAddress

Load the address of a static or sealed method (delegate instantiation).

LoadMethodAddressVirtual

Load the address of a virtual method (delegate instantiation).

NewArray

Create a new array of a type.

NewObject

Creation of a new instance (invoke the constructor).

None

No instruction.

SizeOf

Get the size of a value type (sizeof in C#).

StoreField

Set field value.

See Also