MethodUsageInstructions Enumeration |
Instructions whose operands can reference a declaration.
Namespace: PostSharp.Reflection
Assembly: PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
[FlagsAttribute] public enum MethodUsageInstructions
Member name | Value | Description | |
---|---|---|---|
None | 0 | No instruction. | |
LoadField | 1 | Get field value. | |
StoreField | 2 | Set field value. | |
Call | 4 | Call to a static or sealed method. | |
CallVirtual | 8 | Call to a virtual method. | |
NewObject | 16 | Creation of a new instance (invoke the constructor). | |
LoadFieldAddress | 32 | Get field address. | |
LoadMetadata | 64 | Load the metadata token (for instance typeof). | |
LoadMethodAddress | 128 | Load the address of a static or sealed method (delegate instantiation). | |
LoadMethodAddressVirtual | 256 | Load the address of a virtual method (delegate instantiation). | |
Cast | 512 | Type casting. | |
IsInstance | 1024 | "Safe" type casting (as or is in C#). | |
SizeOf | 2048 | Get the size of a value type (sizeof in C#). | |
NewArray | 4096 | Create a new array of a type. |