2 writes to MarshalType
System.Private.CoreLib (1)
src\System\Reflection\MdImport.cs (1)
295
attribute.
MarshalType
= marshalTypeName;
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)
177
case nameof(MarshalAsAttribute.
MarshalType
):
System.Private.CoreLib (3)
src\System\Reflection\RuntimeCustomAttributeData.cs (3)
355
if (marshalAs.
MarshalType
is not null) i++;
371
if (marshalAs.
MarshalType
is not null)
372
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);