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