1 write to 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)
194case nameof(MarshalAsAttribute.MarshalCookie):
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\RuntimeCustomAttributeData.cs (3)
326if (marshalAs.MarshalCookie is not null) i++; 344if (marshalAs.MarshalCookie is not null) 345namedArgs[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));