Click or drag to resize

DataRowExtensionGetInt Method

Extract an int value from the specified column. Note that DBNull and other non-int values are defaulted to zero.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static int GetInt(
	this DataRow row,
	Enum idx
)

Parameters

row
Type: System.DataDataRow
The data row from which to extract.
idx
Type: SystemEnum
The 0-based index of the column (which must exist in the row).

Return Value

Type: Int32
The int value or zero.

Usage Note

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