63 references to Ansi
Microsoft.Build.Framework (1)
NativeMethods.cs (1)
1692[DllImport("kernel32.dll", PreserveSig = true, BestFitMapping = false, ThrowOnUnmappableChar = true, CharSet = CharSet.Ansi, SetLastError = true)]
Microsoft.CodeAnalysis (9)
CodeGen\PrivateImplementationDetails.cs (1)
1078public CharSet StringFormat => CharSet.Ansi;
MetadataReader\TypeAttributesExtensions.cs (1)
41return CharSet.Ansi;
PEWriter\RootModuleType.cs (1)
187get { return CharSet.Ansi; }
Symbols\Attributes\CommonAttributeData.cs (3)
472CharSet charSet = (defaultCharSet != Cci.Constants.CharSet_None) ? defaultCharSet : CharSet.Ansi; 501charSet = CharSet.Ansi; 504case CharSet.Ansi:
Symbols\Attributes\CommonTypeWellKnownAttributeData.cs (1)
178Debug.Assert(charSet == CharSet.Ansi || charSet == CharSet.Unicode || charSet == Cci.Constants.CharSet_Auto);
Symbols\PlatformInvokeInformation.cs (2)
70return CharSet.Ansi; 178case CharSet.Ansi:
Microsoft.CodeAnalysis.CSharp (2)
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
2526return CharSet.Ansi;
Symbols\NamedTypeSymbol.cs (1)
1570return this.GetEffectiveDefaultMarshallingCharSet() ?? CharSet.Ansi;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (11)
CodeGen\CodeGenDynamicTests.cs (1)
829Assert.Equal(CharSet.Ansi, d.MarshallingCharSet);
CodeGen\CodeGenLocalFunctionTests.cs (1)
5848Assert.Equal(CharSet.Ansi, importData.CharacterSet);
CodeGen\FixedSizeBufferTests.cs (5)
965foreach (var charSet in new[] { CharSet.Ansi, CharSet.Auto, CharSet.None, CharSet.Unicode }) 983Assert.Equal(charSet == CharSet.None ? CharSet.Ansi : charSet, test.MarshallingCharSet); 988Assert.Equal(charSet == CharSet.None ? CharSet.Ansi : charSet, bufferType.MarshallingCharSet); 1015Assert.Equal(CharSet.Ansi, test.MarshallingCharSet); 1020Assert.Equal(CharSet.Ansi, bufferType.MarshallingCharSet);
Emit\NoPiaEmbedTypes.cs (4)
1181Assert.Equal(System.Runtime.InteropServices.CharSet.Ansi, itest1.MarshallingCharSet); 1203Assert.Equal(System.Runtime.InteropServices.CharSet.Ansi, test2.MarshallingCharSet); 1223Assert.Equal(System.Runtime.InteropServices.CharSet.Ansi, itest3.MarshallingCharSet); 1263Assert.Equal(System.Runtime.InteropServices.CharSet.Ansi, test9.MarshallingCharSet);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
Attributes\AttributeTests_WellKnownAttributes.cs (4)
274attrSym.VerifyNamedArgumentValue(1, "CharSet", TypedConstantKind.Enum, (int)CharSet.Ansi); 2867new { attr = MakeDllImport(charSet: CharSet.Ansi), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.CharSetAnsi }, // M8 2874new { attr = MakeDllImport(charSet: CharSet.Ansi, exactSpelling: true), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.ExactSpelling | MethodImportAttributes.CharSetAnsi }, // M13 2875new { attr = MakeDllImport(charSet: CharSet.Ansi, exactSpelling: false), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.CharSetAnsi }, // M14
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\TopLevelStatementsTests.cs (1)
6203Assert.Equal(CharSet.Ansi, importData.CharacterSet);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\Metadata\PE\LoadingAttributes.cs (1)
758attrSym.VerifyNamedArgumentValue(1, "CharSet", TypedConstantKind.Enum, (int)CharSet.Ansi);
Microsoft.CodeAnalysis.VisualBasic (4)
SymbolDisplay\SymbolDisplayVisitor.Members.vb (1)
461Case Cci.Constants.CharSet_None, CharSet.Ansi
Symbols\Metadata\PE\PENamedTypeSymbol.vb (1)
212Return CharSet.Ansi
Symbols\NamedTypeSymbol.vb (1)
214Return If(EffectiveDefaultMarshallingCharSet, CharSet.Ansi)
Symbols\Source\SourceParameterSymbol.vb (1)
461Case Cci.Constants.CharSet_None, CharSet.Ansi
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (8)
Attributes\AttributeTests_WellKnownAttributes.vb (4)
224Assert.Equal(CharSet.Ansi, CType(attrSym.CommonNamedArguments(1).Value.Value, CharSet)) 1887New With {.n = 8, .attr = MakeDllImport(charSet:=CharSet.Ansi), .expected = MethodImportAttributes.CallingConventionWinApi Or MethodImportAttributes.CharSetAnsi}, 1894New With {.n = 13, .attr = MakeDllImport(charSet:=CharSet.Ansi, exactSpelling:=True), .expected = MethodImportAttributes.CallingConventionWinApi Or MethodImportAttributes.ExactSpelling Or MethodImportAttributes.CharSetAnsi}, 1895New With {.n = 14, .attr = MakeDllImport(charSet:=CharSet.Ansi, exactSpelling:=False), .expected = MethodImportAttributes.CallingConventionWinApi Or MethodImportAttributes.CharSetAnsi},
Emit\NoPiaEmbedTypes.vb (4)
1005Assert.Equal(System.Runtime.InteropServices.CharSet.Ansi, itest1.MarshallingCharSet) 1027Assert.Equal(System.Runtime.InteropServices.CharSet.Ansi, test2.MarshallingCharSet) 1047Assert.Equal(System.Runtime.InteropServices.CharSet.Ansi, itest3.MarshallingCharSet) 1087Assert.Equal(System.Runtime.InteropServices.CharSet.Ansi, test9.MarshallingCharSet)
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (1)
Symbols\EENamedTypeSymbol.vb (1)
234Return CharSet.Ansi
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
src\Workspaces\MSBuild\BuildHost\Rpc\Contracts\MonoMSBuildDiscovery.cs (1)
41[DllImport("libc", EntryPoint = "realpath", CharSet = CharSet.Ansi, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)]
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Rpc\Contracts\MonoMSBuildDiscovery.cs (1)
41[DllImport("libc", EntryPoint = "realpath", CharSet = CharSet.Ansi, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)]
Microsoft.Interop.LibraryImportGenerator (2)
Analyzers\ConvertToLibraryImportFixer.cs (2)
102if (charSet is CharSet.None or CharSet.Ansi or CharSet.Auto) 463else if (dllImportData.CharacterSet == CharSet.Ansi || (dllImportData.CharacterSet == CharSet.Auto && entryPointSuffix == 'A'))
Microsoft.ML.FastTree (6)
Dataset\SegmentIntArray.cs (5)
520[DllImport(NativePath, CharSet = CharSet.Ansi), SuppressUnmanagedCodeSecurity] 523[DllImport(NativePath, CharSet = CharSet.Ansi), SuppressUnmanagedCodeSecurity] 526[DllImport(NativePath, CharSet = CharSet.Ansi), SuppressUnmanagedCodeSecurity] 529[DllImport(NativePath, CharSet = CharSet.Ansi), SuppressUnmanagedCodeSecurity] 532[DllImport(NativePath, CharSet = CharSet.Ansi), SuppressUnmanagedCodeSecurity]
FastTreeRanking.cs (1)
1010[DllImport("FastTreeNative", EntryPoint = "C_GetDerivatives", CharSet = CharSet.Ansi), SuppressUnmanagedCodeSecurity]
Microsoft.ML.Transforms (1)
Text\LdaSingleBox.cs (1)
43[DllImport(NativePath, CharSet = CharSet.Ansi), SuppressUnmanagedCodeSecurity]
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
ObjectBrowser\DescriptionBuilder.vb (1)
171Case System.Runtime.InteropServices.CharSet.Ansi
System.Private.CoreLib (3)
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (1)
1175case CharSet.Ansi:
src\System\Reflection\RuntimeCustomAttributeData.cs (2)
2194case PInvokeAttributes.CharSetAnsi: charSet = CharSet.Ansi; break; 2281case TypeAttributes.AnsiClass: charSet = CharSet.Ansi; break;
System.Reflection.Emit (2)
System\Reflection\Emit\PseudoCustomAttributesData.cs (1)
112CharSet.Ansi => MethodImportAttributes.CharSetAnsi,
System\Reflection\Emit\TypeBuilderImpl.cs (1)
521case CharSet.Ansi:
System.Reflection.MetadataLoadContext (2)
System\Reflection\TypeLoading\MethodBase\Ecma\EcmaMethodDecoder.cs (1)
126MethodImportAttributes.CharSetAnsi => CharSet.Ansi,
System\Reflection\TypeLoading\Types\RoDefinitionType.cs (1)
165TypeAttributes.AnsiClass => CharSet.Ansi,
UIAutomationTypes (2)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\UnsafeNativeMethodsCLR.cs (2)
517[DllImport(ExternDll.Kernel32, SetLastError = true, EntryPoint = "GetProcAddress", CharSet = CharSet.Ansi, BestFitMapping = false)] 538[DllImport(ExternDll.Kernel32, EntryPoint = "GetProcAddress", CharSet = CharSet.Ansi, BestFitMapping = false)]