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