16 references to CharSetAnsi
Microsoft.CodeAnalysis (2)
Symbols\PlatformInvokeInformation.cs (2)
69
case MethodImportAttributes.
CharSetAnsi
:
179
result |= MethodImportAttributes.
CharSetAnsi
;
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
Attributes\AttributeTests_WellKnownAttributes.cs (4)
2867
new { attr = MakeDllImport(charSet: CharSet.Ansi), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.
CharSetAnsi
}, // M8
2874
new { attr = MakeDllImport(charSet: CharSet.Ansi, exactSpelling: true), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.ExactSpelling | MethodImportAttributes.
CharSetAnsi
}, // M13
2875
new { attr = MakeDllImport(charSet: CharSet.Ansi, exactSpelling: false), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.
CharSetAnsi
}, // M14
3436
Assert.Equal(MethodImportAttributes.
CharSetAnsi
, import.Attributes & MethodImportAttributes.CharSetMask);
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Source\SourceMethodSymbol.vb (1)
289
result = MethodImportAttributes.
CharSetAnsi
Or MethodImportAttributes.ExactSpelling
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (7)
Attributes\AttributeTests_WellKnownAttributes.vb (7)
1887
New With {.n = 8, .attr = MakeDllImport(charSet:=CharSet.Ansi), .expected = MethodImportAttributes.CallingConventionWinApi Or MethodImportAttributes.
CharSetAnsi
},
1894
New With {.n = 13, .attr = MakeDllImport(charSet:=CharSet.Ansi, exactSpelling:=True), .expected = MethodImportAttributes.CallingConventionWinApi Or MethodImportAttributes.ExactSpelling Or MethodImportAttributes.
CharSetAnsi
},
1895
New With {.n = 14, .attr = MakeDllImport(charSet:=CharSet.Ansi, exactSpelling:=False), .expected = MethodImportAttributes.CallingConventionWinApi Or MethodImportAttributes.
CharSetAnsi
},
2523
Assert.Equal(MethodImportAttributes.
CharSetAnsi
, import.Attributes And MethodImportAttributes.CharSetMask)
2777
MethodImportAttributes.
CharSetAnsi
Or
2827
Assert.Equal(declareFlags Or MethodImportAttributes.ExactSpelling Or MethodImportAttributes.
CharSetAnsi
, import.Attributes)
2842
Assert.Equal(declareFlags Or MethodImportAttributes.ExactSpelling Or MethodImportAttributes.
CharSetAnsi
, import.Attributes)
System.Reflection.Emit (1)
System\Reflection\Emit\PseudoCustomAttributesData.cs (1)
112
CharSet.Ansi => MethodImportAttributes.
CharSetAnsi
,
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\MethodBase\Ecma\EcmaMethodDecoder.cs (1)
126
MethodImportAttributes.
CharSetAnsi
=> CharSet.Ansi,