19 implementations of ToChar
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
LinkTagHelperTest.cs (1)
1237public char ToChar(IFormatProvider provider)
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskBuilderTestTask.cs (1)
45public char ToChar(IFormatProvider provider) => Value.ToChar(provider);
Microsoft.Gen.Logging.Generated.Tests (1)
test\Generators\Microsoft.Gen.Logging\TestClasses\FormattableTestExtensions.cs (1)
33public readonly char ToChar(IFormatProvider? provider) => throw new NotSupportedException();
System.Private.CoreLib (16)
src\libraries\System.Private.CoreLib\src\System\Boolean.cs (1)
331char IConvertible.ToChar(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
187char IConvertible.ToChar(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
522char IConvertible.ToChar(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (1)
1977char IConvertible.ToChar(IFormatProvider? provider) => throw InvalidCast(nameof(Char));
src\libraries\System.Private.CoreLib\src\System\DBNull.cs (1)
47char IConvertible.ToChar(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
1039char IConvertible.ToChar(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
457char IConvertible.ToChar(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
2178char IConvertible.ToChar(IFormatProvider? provider) => Convert.ToChar(GetValue());
src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
190char IConvertible.ToChar(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
205char IConvertible.ToChar(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
202char IConvertible.ToChar(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
193char IConvertible.ToChar(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
452char IConvertible.ToChar(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
184char IConvertible.ToChar(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
200char IConvertible.ToChar(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
199char IConvertible.ToChar(IFormatProvider? provider)
26 references to ToChar
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskBuilderTestTask.cs (1)
45public char ToChar(IFormatProvider provider) => Value.ToChar(provider);
Microsoft.VisualBasic.Core (10)
Microsoft\VisualBasic\CompilerServices\CharType.vb (1)
41Return ValueInterface.ToChar(Nothing)
Microsoft\VisualBasic\CompilerServices\Conversions.vb (3)
2083Return ValueInterface.ToChar(Nothing) 2298Return CStr(ValueInterface.ToChar(Nothing)) 2436Case TypeCode.Char : Return iconv.ToChar(Nothing)
Microsoft\VisualBasic\CompilerServices\ObjectType.vb (5)
554Return ObjTstChar(conv1.ToChar(Nothing), ChrW(0)) 557Return ObjTstChar(ChrW(0), conv2.ToChar(Nothing)) 714Return ObjTstChar(conv1.ToChar(Nothing), conv2.ToChar(Nothing)) 3638Return iconv.ToChar(Nothing)
Microsoft\VisualBasic\CompilerServices\StringType.vb (1)
142Return FromChar(ValueInterface.ToChar(Nothing))
System.Data.Common (3)
System\Data\Common\CharStorage.cs (2)
120value = ((IConvertible)value).ToChar(FormatProvider); 156char ch = ((IConvertible)value).ToChar(FormatProvider);
System\Data\Common\SQLConvert.cs (1)
517return ((IConvertible)(string)value).ToChar(formatProvider);
System.Private.CoreLib (10)
src\libraries\System.Private.CoreLib\src\System\Convert.cs (10)
147TypeCode.Char => v.ToChar(provider), 182return value.ToChar(provider); 254return ic.ToChar(provider); 422return value == null ? (char)0 : ((IConvertible)value).ToChar(null); 427return value == null ? (char)0 : ((IConvertible)value).ToChar(provider); 432return ((IConvertible)value).ToChar(null); 505return ((IConvertible)value).ToChar(null); 512return ((IConvertible)value).ToChar(null); 519return ((IConvertible)value).ToChar(null); 524return ((IConvertible)value).ToChar(null);
System.Windows.Forms.Design (2)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (2)
1343char leftValue = left.ToChar(null); 1344char rightValue = right.ToChar(null);