16 references to System_Runtime_InteropServices_MarshalAsAttribute
Microsoft.Interop.ComInterfaceGenerator (8)
Analyzers\AddMarshalAsToElementFixer.cs (1)
52TypeNames.System_Runtime_InteropServices_MarshalAsAttribute,
ComInterfaceGenerator.cs (1)
976or "global::" + TypeNames.System_Runtime_InteropServices_MarshalAsAttribute)
ComMethodInfo.cs (1)
626&& attrName != TypeNames.System_Runtime_InteropServices_MarshalAsAttribute)
parent\Common\ConvertToSourceGeneratedInteropFixer.cs (5)
241&& !parameter.GetAttributes().Any(attr => attr.AttributeClass?.ToDisplayString() == TypeNames.System_Runtime_InteropServices_MarshalAsAttribute)) 250&& !methodSymbol.GetReturnTypeAttributes().Any(attr => attr.AttributeClass?.ToDisplayString() == TypeNames.System_Runtime_InteropServices_MarshalAsAttribute)) 260=> generator.Attribute(TypeNames.System_Runtime_InteropServices_MarshalAsAttribute, 271&& !methodSymbol.GetReturnTypeAttributes().Any(attr => attr.AttributeClass?.ToDisplayString() == TypeNames.System_Runtime_InteropServices_MarshalAsAttribute)) 289=> generator.Attribute(TypeNames.System_Runtime_InteropServices_MarshalAsAttribute,
Microsoft.Interop.LibraryImportGenerator (5)
parent\Common\ConvertToSourceGeneratedInteropFixer.cs (5)
241&& !parameter.GetAttributes().Any(attr => attr.AttributeClass?.ToDisplayString() == TypeNames.System_Runtime_InteropServices_MarshalAsAttribute)) 250&& !methodSymbol.GetReturnTypeAttributes().Any(attr => attr.AttributeClass?.ToDisplayString() == TypeNames.System_Runtime_InteropServices_MarshalAsAttribute)) 260=> generator.Attribute(TypeNames.System_Runtime_InteropServices_MarshalAsAttribute, 271&& !methodSymbol.GetReturnTypeAttributes().Any(attr => attr.AttributeClass?.ToDisplayString() == TypeNames.System_Runtime_InteropServices_MarshalAsAttribute)) 289=> generator.Attribute(TypeNames.System_Runtime_InteropServices_MarshalAsAttribute,
Microsoft.Interop.SourceGeneration (3)
MarshalAsParser.cs (2)
33writer.Write($"{TypeNames.GlobalAlias}{TypeNames.System_Runtime_InteropServices_MarshalAsAttribute}(({TypeNames.GlobalAlias}{TypeNames.System_Runtime_InteropServices_UnmanagedType}){(int)unmanagedType}"); 137public bool CanParseAttributeType(INamedTypeSymbol attributeType) => attributeType.ToDisplayString() == TypeNames.System_Runtime_InteropServices_MarshalAsAttribute;
MarshalAsWithCustomMarshallersParser.cs (1)
35public bool CanParseAttributeType(INamedTypeSymbol attributeType) => attributeType.ToDisplayString() == TypeNames.System_Runtime_InteropServices_MarshalAsAttribute;