[]
Converts an object to an integer value.
public static int GetInt(object value)
| Type | Name | Description |
|---|---|---|
| object | value | The object to convert. |
| Type | Description |
|---|---|
| int | The converted value, or 0 if the object could not be converted. |
Converts an object to an integer value.
public static int GetInt(object value, int defaultValue)
| Type | Name | Description |
|---|---|---|
| object | value | The object to convert. |
| int | defaultValue | The default value. |
| Type | Description |
|---|---|
| int | The converted value, or |