19 implementations of ToType
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
LinkTagHelperTest.cs (1)
1288
public object
ToType
(Type conversionType, IFormatProvider provider)
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskBuilderTestTask.cs (1)
55
public object
ToType
(Type conversionType, IFormatProvider provider) => Value.ToType(conversionType, provider);
Microsoft.Gen.Logging.Generated.Tests (1)
test\Generators\Microsoft.Gen.Logging\TestClasses\FormattableTestExtensions.cs (1)
42
public readonly object
ToType
(Type conversionType, IFormatProvider? provider) => throw new NotSupportedException();
System.Private.CoreLib (16)
src\libraries\System.Private.CoreLib\src\System\Boolean.cs (1)
396
object IConvertible.
ToType
(Type type, IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
252
object IConvertible.
ToType
(Type type, IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
587
object IConvertible.
ToType
(Type type, IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (1)
1994
object IConvertible.
ToType
(Type type, IFormatProvider? provider) => Convert.DefaultToType(this, type, provider);
src\libraries\System.Private.CoreLib\src\System\DBNull.cs (1)
112
object IConvertible.
ToType
(Type type, IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
1104
object IConvertible.
ToType
(Type type, IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
522
object IConvertible.
ToType
(Type type, IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
2191
object IConvertible.
ToType
(Type type, IFormatProvider? provider) => Convert.DefaultToType(this, type, provider);
src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
255
object IConvertible.
ToType
(Type type, IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
270
object IConvertible.
ToType
(Type type, IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
267
object IConvertible.
ToType
(Type type, IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
258
object IConvertible.
ToType
(Type type, IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
517
object IConvertible.
ToType
(Type type, IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
249
object IConvertible.
ToType
(Type type, IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
265
object IConvertible.
ToType
(Type type, IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
264
object IConvertible.
ToType
(Type type, IFormatProvider? provider)
8 references to ToType
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeGenerator.cs (1)
1131
Ldc(((IConvertible)o).
ToType
(Enum.GetUnderlyingType(valueType), null));
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskBuilderTestTask.cs (1)
55
public object ToType(Type conversionType, IFormatProvider provider) => Value.
ToType
(conversionType, provider);
System.ComponentModel.TypeConverter (1)
System\ComponentModel\EnumConverter.cs (1)
153
object convertedValue = ((IConvertible)value).
ToType
(underlyingType, culture);
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Convert.cs (1)
284
return ic.
ToType
(conversionType, provider);
System.Windows.Forms.Design (4)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (3)
578
rhs = ic.
ToType
(fieldType, null);
937
result = ic.
ToType
(targetType, null);
1561
rhs = ic.
ToType
(p.PropertyType, null);
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
326
tempArgs[t] = convertible.
ToType
(parameters[t].ParameterType, null);