GenericRow.GetAs<T>(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the column value at the given index, as a type T. TODO: If the original type is "long" and its value can be fit into the "int", Pickler will serialize the value as int. Since the value is boxed, GetAs<T>(Int32) will throw an exception.
public T GetAs<T>(int index);
member this.GetAs : int -> 'T
Public Function GetAs(Of T) (index As Integer) As T
Type Parameters
- T
Type to convert to
Parameters
- index
- Int32
Index to look up
Returns
A column value as a type T