15 references to System_Runtime_InteropServices_MarshalAsAttribute
Microsoft.Interop.ComInterfaceGenerator (6)
Analyzers\AddMarshalAsToElementFixer.cs (1)
52TypeNames.System_Runtime_InteropServices_MarshalAsAttribute,
src\libraries\System.Runtime.InteropServices\gen\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)
src\libraries\System.Runtime.InteropServices\gen\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 (4)
MarshalAsParser.cs (3)
45ParseName(TypeNames.System_Runtime_InteropServices_MarshalAsAttribute), 74ParseName(TypeNames.System_Runtime_InteropServices_MarshalAsAttribute), 131public 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;