22 references to ExactSpelling
Microsoft.CodeAnalysis (2)
Symbols\PlatformInvokeInformation.cs (2)
56return (_flags & MethodImportAttributes.ExactSpelling) != 0; 173result |= MethodImportAttributes.ExactSpelling;
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Attributes\AttributeTests_WellKnownAttributes.cs (6)
2709MethodImportAttributes.ExactSpelling | 2736MethodImportAttributes.ExactSpelling | 2871new { attr = MakeDllImport(exactSpelling: true), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.ExactSpelling }, // M11 2874new { attr = MakeDllImport(charSet: CharSet.Ansi, exactSpelling: true), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.ExactSpelling | MethodImportAttributes.CharSetAnsi }, // M13 2876new { attr = MakeDllImport(charSet: CharSet.Unicode, exactSpelling: true), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.ExactSpelling | MethodImportAttributes.CharSetUnicode },// M15 2878new { attr = MakeDllImport(charSet: CharSet.Auto, exactSpelling: true), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.ExactSpelling | MethodImportAttributes.CharSetAuto }, // M17
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\Source\SourceMethodSymbol.vb (2)
289result = MethodImportAttributes.CharSetAnsi Or MethodImportAttributes.ExactSpelling 292result = MethodImportAttributes.CharSetUnicode Or MethodImportAttributes.ExactSpelling
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (10)
Attributes\AttributeTests_WellKnownAttributes.vb (10)
1514Assert.Equal(MethodImportAttributes.ExactSpelling Or 1542MethodImportAttributes.ExactSpelling Or 1891New With {.n = 11, .attr = MakeDllImport(exactSpelling:=True), .expected = MethodImportAttributes.CallingConventionWinApi Or MethodImportAttributes.ExactSpelling}, 1894New With {.n = 13, .attr = MakeDllImport(charSet:=CharSet.Ansi, exactSpelling:=True), .expected = MethodImportAttributes.CallingConventionWinApi Or MethodImportAttributes.ExactSpelling Or MethodImportAttributes.CharSetAnsi}, 1896New With {.n = 15, .attr = MakeDllImport(charSet:=CharSet.Unicode, exactSpelling:=True), .expected = MethodImportAttributes.CallingConventionWinApi Or MethodImportAttributes.ExactSpelling Or MethodImportAttributes.CharSetUnicode}, 1898New With {.n = 17, .attr = MakeDllImport(charSet:=CharSet.Auto, exactSpelling:=True), .expected = MethodImportAttributes.CallingConventionWinApi Or MethodImportAttributes.ExactSpelling Or MethodImportAttributes.CharSetAuto}, 2776Assert.Equal(MethodImportAttributes.ExactSpelling Or 2827Assert.Equal(declareFlags Or MethodImportAttributes.ExactSpelling Or MethodImportAttributes.CharSetAnsi, import.Attributes) 2832Assert.Equal(declareFlags Or MethodImportAttributes.ExactSpelling Or MethodImportAttributes.CharSetUnicode, import.Attributes) 2842Assert.Equal(declareFlags Or MethodImportAttributes.ExactSpelling Or MethodImportAttributes.CharSetAnsi, import.Attributes)
System.Reflection.Emit (1)
System\Reflection\Emit\PseudoCustomAttributesData.cs (1)
61importAttributes |= MethodImportAttributes.ExactSpelling;
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\MethodBase\Ecma\EcmaMethodDecoder.cs (1)
143ExactSpelling = (a & MethodImportAttributes.ExactSpelling) != 0,