DBConvert.ChangeType<T> Method (Object)


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

Changes the specified value to the current type.

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

public static T ChangeType<T>(
	object value


Type: System.Object

The object to be converted.

Return Value

Type: T

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

Type Parameters


The type to change to.

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