 | ObjectExtensionsToInt32 Method |
Converts the value of the specified object to a 32-bit signed integer, using
the current culture formatting information.
Namespace:
TestHelperExtensions
Assembly:
CBI.TestHelperExtensions (in CBI.TestHelperExtensions.dll) Version: 2.1.0.1
Syntaxpublic static int ToInt32(
this Object value
)
<ExtensionAttribute>
Public Shared Function ToInt32 (
value As Object
) As Integer
public:
[ExtensionAttribute]
static int ToInt32(
Object^ value
)
[<ExtensionAttribute>]
static member ToInt32 :
value : Object -> int
Parameters
- value
- Type: SystemObject
An object that implements the System.IConvertible interface.
Return Value
Type:
Int32A 32-bit signed integer that is equivalent to value, or zero if value is null.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Object. 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