Cuemon .NET Framework
ChangeType(Object,Type) Method

The object to convert the underlying type.
The System.Type of object to return.
Returns an object of the specified type and whose value is equivalent to the specified object.
Syntax
'Declaration
 
Public Overloads Shared Function ChangeType( _
   ByVal value As Object, _
   ByVal conversionType As Type _
) As Object
public static object ChangeType( 
   object value,
   Type conversionType
)

Parameters

value
The object to convert the underlying type.
conversionType
The System.Type of object to return.

Return Value

An object whose type is conversionType and whose value is equivalent to value.
Remarks
What differs from the System.Convert.ChangeType(System.Object,System.TypeCode) is, that this converter supports generics and enums somewhat automated.
Requirements

Target Platforms: Windows 8, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ObjectConverter Class
ObjectConverter Members
Overload List

 

 


| Cuemon is licensed under a The MIT License (MIT)



© 2009-2015 Weubphoria. All Rights Reserved.

Documentation made easy with Document! X by Innovasys

Send Feedback