1 write to MarshalType
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)
193case nameof(MarshalAsAttribute.MarshalType):
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\RuntimeCustomAttributeData.cs (3)
324if (marshalAs.MarshalType is not null) i++; 340if (marshalAs.MarshalType is not null) 341namedArgs[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);