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