ConvertibleExtensionsToTypeDefault Method
Namespace: Jodosoft.PrimitivesAssembly: Jodosoft.Primitives (in Jodosoft.Primitives.dll) Version: 2.0
public static Object ToTypeDefault(
this IConvertible value,
Type targetType,
IFormatProvider? provider
)
<ExtensionAttribute>
Public Shared Function ToTypeDefault (
value As IConvertible,
targetType As Type,
provider As IFormatProvider
) As Object
public:
[ExtensionAttribute]
static Object^ ToTypeDefault(
IConvertible^ value,
Type^ targetType,
IFormatProvider^ provider
)
[<ExtensionAttribute>]
static member ToTypeDefault :
value : IConvertible *
targetType : Type *
provider : IFormatProvider -> Object
- value IConvertible
- The IConvertible to convert.
- targetType Type
- The Type to which the value of this instance is converted.
- provider IFormatProvider
- An IFormatProvider interface implementation that supplies culture-specific formatting information.
ObjectAn
Object instance of type conversionType whose value is equivalent to the value of this instance.In Visual Basic and C#, you can call this method as an instance method on any object of type
IConvertible. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).