Many languages that target the CLI use attribute syntax to attach declarative security attributes to items in the metadata. This information is actually converted by the compiler into an XML-based representation that is stored in the metadata (see Partition II, section 21.11). By contrast, ilasm requires the conversion information to be represented in its input.
In .permission, <typeReference> specifies the permission class and <nameValPairs> specifies the settings. See Partition II, section 21.11. In .permissionset, the bytes specify the serialized version of the security settings:
|