NullableTypes Class Library

DBNullConvert Methods

The methods of the DBNullConvert class are listed below. For a complete list of DBNullConvert class members, see the DBNullConvert Members topic.

Public Static (Shared) Methods

FromOverloaded. Converts the specified value to an equivalent Object value that can be assigned to a DataRow Item value, a Parameters Item value or a IDataRecord Item value.
ToNullableBoolean Converts an object value that is DBNull or System.Boolean to an equivalent NullableBoolean value.
ToNullableByte Converts an object value that is DBNull or System.Byte to an equivalent NullableByte value.
ToNullableDateTime Converts an object value that is DBNull or System.DateTime to an equivalent NullableDateTime value.
ToNullableDecimal Converts an object value that is DBNull or System.Decimal to an equivalent NullableDecimal value.
ToNullableDouble Converts an object value that is DBNull or System.Double to an equivalent NullableDouble value.
ToNullableInt16 Converts an object value that is DBNull or System.Int16 to an equivalent NullableInt16 value.
ToNullableInt32 Converts an object value that is DBNull or System.Int32 to an equivalent NullableInt32 value.
ToNullableInt64 Converts an object value that is DBNull or System.Int64 to an equivalent NullableInt64 value.
ToNullableSingle Converts an object value that is DBNull or System.Single to an equivalent NullableSingle value.
ToNullableString Converts an object value that is DBNull or System.String to an equivalent NullableString value.

Public Instance Methods

Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

DBNullConvert Class | NullableTypes.HelperFunctions Namespace