[]
Converts an object to an integer value.
public static int GetInt(object value)
Public Shared Function GetInt(value As Object) As Integer
| 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)
Public Shared Function GetInt(value As Object, defaultValue As Integer) As Integer
| Type | Name | Description |
|---|---|---|
| object | value | The object to convert. |
| int | defaultValue | The default value. |
| Type | Description |
|---|---|
| int | The converted value, or |