1 write to MarshalType
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeHelpers.cs (1)
245
ma.
MarshalType
= br.ReadSerializedString();
8 references to MarshalType
Microsoft.Interop.SourceGeneration (1)
MarshalAsParser.cs (1)
193
case nameof(MarshalAsAttribute.
MarshalType
):
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\RuntimeCustomAttributeData.cs (3)
324
if (marshalAs.
MarshalType
is not null) i++;
340
if (marshalAs.
MarshalType
is not null)
341
namedArgs[i++] = new CustomAttributeNamedArgument(type.GetField("MarshalType")!, marshalAs.
MarshalType
);
System.Reflection.MetadataLoadContext (4)
System\Reflection\TypeLoading\CustomAttributes\CustomAttributeHelpers.cs (3)
128
if (ma.
MarshalType
!= null)
130
cans.Add(attributeType.ToCustomAttributeNamedArgument(nameof(MarshalAsAttribute.
MarshalType
), ct[CoreType.String], ma.
MarshalType
));
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeHelpers.cs (1)
246
ma.MarshalTypeRef = Helpers.LoadTypeFromAssemblyQualifiedName(ma.
MarshalType
!, module.GetRoAssembly(), ignoreCase: false, throwOnError: false);