Click or drag to resize

DataSetExtensionsGetDataType Method

Attempts to derive DataType based on object Type.

Namespace: GSF.Data
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.181-beta
Syntax
public static DataType GetDataType(
	this Type objectType,
	bool assumeStringForUnknownTypes = true
)
View Source

Parameters

objectType  Type
Type of object to test.
assumeStringForUnknownTypes  Boolean  (Optional)
Flag to determine if unknown column types should be serialized as strings.

Return Value

DataType
Derived DataType based on object Type if matched; otherwise Object.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Type. 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).
See Also