DBConvert.ChangeType Method (Object, Type)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

This API supports the product infrastructure and is not intended to be used directly from your code.

Changes the specified value to the specified type.

Namespace:   System.Data.Linq
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

public static object ChangeType(
	object value,
	Type type
)

Parameters

value
Type: System.Object

The object to be converted.

type
Type: System.Type

The type to convert the object to.

Return Value

Type: System.Object

An object that contains the converted value of the specified type.

.NET Framework
Available since 3.5
Windows Phone Silverlight
Available since 7.1
Return to top
Show: