Click or drag to resize

ObjectExtensions Class

Adds functionality that is often used for unit testing to the Object data type
Inheritance Hierarchy
SystemObject
  TestHelperExtensionsObjectExtensions

Namespace:  TestHelperExtensions
Assembly:  CBI.TestHelperExtensions (in CBI.TestHelperExtensions.dll) Version: 2.1.0.1
Syntax
public static class ObjectExtensions

The ObjectExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberToDateTime
Converts the value of the specified object to a System.DateTime object, using the current culture formatting information.
Public methodStatic memberToInt32
Converts the value of the specified object to a 32-bit signed integer, using the current culture formatting information.
Public methodStatic memberToInt64
Converts the value of the specified object to a 64-bit signed integer, using the current culture formatting information.
Public methodStatic memberToNullableDateTime
Converts the value of the specified object to a System.DateTime object, using the current culture formatting information.
Public methodStatic memberToNullableInt64
Converts the value of the specified object to a 64-bit signed integer, using the current culture formatting information. If the object has no value, a null is returned.
Top
Remarks
This library is not intended for use as production code, but instead is intended to provide functionality in the test libraries for that production code.
See Also