The attributes are combined using the bitwise OR operation.
Code implementation masks:
CodeTypeMask
IL
Native
OPTIL
Runtime
Managed masks:
ManagedMask
Unmanaged
Managed
Implementation information and interop masks:
ForwardRef
PreserveSig
InternalCall
Synchronized
NoInlining
MaxMethodImplVal
Note: |
|---|
Locking on the instance or on the type, for example, by using the Synchronized flag, is not recommended for public types because code other than your own can take locks on public types and instances. This might cause deadlocks. |