16 references to System_Runtime_InteropServices_MarshalAsAttribute
Microsoft.Interop.ComInterfaceGenerator (6)
Analyzers\AddMarshalAsToElementFixer.cs (1)
52
TypeNames.
System_Runtime_InteropServices_MarshalAsAttribute
,
src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (5)
245
&& !parameter.GetAttributes().Any(attr => attr.AttributeClass?.ToDisplayString() == TypeNames.
System_Runtime_InteropServices_MarshalAsAttribute
))
254
&& !methodSymbol.GetReturnTypeAttributes().Any(attr => attr.AttributeClass?.ToDisplayString() == TypeNames.
System_Runtime_InteropServices_MarshalAsAttribute
))
264
=> generator.Attribute(TypeNames.
System_Runtime_InteropServices_MarshalAsAttribute
,
275
&& !methodSymbol.GetReturnTypeAttributes().Any(attr => attr.AttributeClass?.ToDisplayString() == TypeNames.
System_Runtime_InteropServices_MarshalAsAttribute
))
293
=> generator.Attribute(TypeNames.
System_Runtime_InteropServices_MarshalAsAttribute
,
Microsoft.Interop.LibraryImportGenerator (5)
src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (5)
245
&& !parameter.GetAttributes().Any(attr => attr.AttributeClass?.ToDisplayString() == TypeNames.
System_Runtime_InteropServices_MarshalAsAttribute
))
254
&& !methodSymbol.GetReturnTypeAttributes().Any(attr => attr.AttributeClass?.ToDisplayString() == TypeNames.
System_Runtime_InteropServices_MarshalAsAttribute
))
264
=> generator.Attribute(TypeNames.
System_Runtime_InteropServices_MarshalAsAttribute
,
275
&& !methodSymbol.GetReturnTypeAttributes().Any(attr => attr.AttributeClass?.ToDisplayString() == TypeNames.
System_Runtime_InteropServices_MarshalAsAttribute
))
293
=> generator.Attribute(TypeNames.
System_Runtime_InteropServices_MarshalAsAttribute
,
Microsoft.Interop.SourceGeneration (5)
MarshalAsParser.cs (3)
45
ParseName(TypeNames.
System_Runtime_InteropServices_MarshalAsAttribute
),
74
ParseName(TypeNames.
System_Runtime_InteropServices_MarshalAsAttribute
),
131
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
;
TypeNames.cs (1)
23
public static NameSyntax System_Runtime_InteropServices_MarshalAsAttribute => _System_Runtime_InteropServices_MarshalAsAttribute ??= ParseName(TypeNames.GlobalAlias + TypeNames.
System_Runtime_InteropServices_MarshalAsAttribute
);