2 writes to MarshalCookie
System.Private.CoreLib (1)
src\System\Reflection\MdImport.cs (1)
297attribute.MarshalCookie = marshalCookie;
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeHelpers.cs (1)
250ma.MarshalCookie = br.ReadSerializedString();
7 references to MarshalCookie
Microsoft.Interop.SourceGeneration (1)
MarshalAsParser.cs (1)
178case nameof(MarshalAsAttribute.MarshalCookie):
System.Private.CoreLib (3)
src\System\Reflection\RuntimeCustomAttributeData.cs (3)
357if (marshalAs.MarshalCookie is not null) i++; 375if (marshalAs.MarshalCookie is not null) 376namedArgs[i++] = new CustomAttributeNamedArgument(type.GetField("MarshalCookie")!, marshalAs.MarshalCookie);
System.Reflection.MetadataLoadContext (3)
System\Reflection\TypeLoading\CustomAttributes\CustomAttributeHelpers.cs (3)
138if (ma.MarshalCookie != null) 140cans.Add(attributeType.ToCustomAttributeNamedArgument(nameof(MarshalAsAttribute.MarshalCookie), ct[CoreType.String], ma.MarshalCookie));