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