getInt


Description:

public int getInt (T obj, string prop, Type gtype)

Extracts an integer value from an object property.

Converts various property types (boolean, int, int64, enum) to an integer value for use in SQL queries.

Parameters:

obj

The object to read from

prop

The property name

gtype

The GType of the property

Returns:

The integer value of the property