16 references to System_Runtime_InteropServices_MarshalAsAttribute
Microsoft.Interop.ComInterfaceGenerator (6)
Analyzers\AddMarshalAsToElementFixer.cs (1)
52
TypeNames.
System_Runtime_InteropServices_MarshalAsAttribute
,
src\runtime\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\runtime\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 (5)
MarshalAsParser.cs (4)
45
ParseName(TypeNames.
System_Runtime_InteropServices_MarshalAsAttribute
),
70
ParseName(TypeNames.
System_Runtime_InteropServices_MarshalAsAttribute
),
107
ParseName(TypeNames.
System_Runtime_InteropServices_MarshalAsAttribute
),
169
public bool CanParseAttributeType(INamedTypeSymbol attributeType) => attributeType.ToDisplayString() == TypeNames.
System_Runtime_InteropServices_MarshalAsAttribute
;
MarshalAsWithCustomMarshallersParser.cs (1)
35
public bool CanParseAttributeType(INamedTypeSymbol attributeType) => attributeType.ToDisplayString() == TypeNames.
System_Runtime_InteropServices_MarshalAsAttribute
;