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