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