This is the online documentation for PostSharp 5.0.
Download PDF or CHM. Go to v4.3 or v5.0

MethodUsageInstructions Enumeration

Instructions whose operands can reference a declaration.

Namespace:  PostSharp.Reflection
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.31.0 (5.0.31.0)
Syntax
C#
[FlagsAttribute]
public enum MethodUsageInstructions
Members
  Member nameValueDescription
None0 No instruction.
LoadField1 Get field value.
StoreField2 Set field value.
Call4 Call to a static or sealed method.
CallVirtual8 Call to a virtual method.
NewObject16 Creation of a new instance (invoke the constructor).
LoadFieldAddress32 Get field address.
LoadMetadata64 Load the metadata token (for instance typeof).
LoadMethodAddress128 Load the address of a static or sealed method (delegate instantiation).
LoadMethodAddressVirtual256 Load the address of a virtual method (delegate instantiation).
Cast512 Type casting.
IsInstance1024 "Safe" type casting (as or is in C#).
SizeOf2048 Get the size of a value type (sizeof in C#).
NewArray4096 Create a new array of a type.
See Also