2 writes to MarshalTypeRef
System.Private.CoreLib (1)
src\System\Reflection\MdImport.cs (1)
296attribute.MarshalTypeRef = marshalTypeRef;
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeHelpers.cs (1)
246ma.MarshalTypeRef = Helpers.LoadTypeFromAssemblyQualifiedName(ma.MarshalType!, module.GetRoAssembly(), ignoreCase: false, throwOnError: false);
7 references to MarshalTypeRef
Microsoft.Interop.SourceGeneration (1)
MarshalAsParser.cs (1)
176case nameof(MarshalAsAttribute.MarshalTypeRef):
System.Private.CoreLib (3)
src\System\Reflection\RuntimeCustomAttributeData.cs (3)
356if (marshalAs.MarshalTypeRef is not null) i++; 373if (marshalAs.MarshalTypeRef is not null) 374namedArgs[i++] = new CustomAttributeNamedArgument(type.GetField("MarshalTypeRef")!, marshalAs.MarshalTypeRef);
System.Reflection.MetadataLoadContext (3)
System\Reflection\TypeLoading\CustomAttributes\CustomAttributeHelpers.cs (3)
133if (ma.MarshalTypeRef != null) 135cans.Add(attributeType.ToCustomAttributeNamedArgument(nameof(MarshalAsAttribute.MarshalTypeRef), ct[CoreType.Type], ma.MarshalTypeRef));