C# Class Gammtek.Conduit.Helpers.ObjectHelper

Object helper class.
Exibir arquivo Open project: ME3Explorer/ME3Explorer

Public Methods

Method Description
AreEqual ( object object1, object object2 ) : bool

Checks whether the 2 specified objects are equal. This method is better, simple because it also checks boxing so 2 integers with the same values that are boxed are equal.

AreEqualReferences ( object object1, object object2 ) : bool

Checks whether the 2 specified objects are equal references. This method is better, simple because it also checks boxing so 2 integers with the same values that are boxed are equal. Two objects are considered equal if one of the following expressions returns true: Both values are null. Both values have the same reference, checked by object.ReferenceEquals. Both values are value types and have the same value. Both values are string type and have the same value.

IsNull ( object obj ) : bool

Determines whether the specified object is null or DBNull.Value.

Method Details

AreEqual() public static method

Checks whether the 2 specified objects are equal. This method is better, simple because it also checks boxing so 2 integers with the same values that are boxed are equal.
public static AreEqual ( object object1, object object2 ) : bool
object1 object The first object.
object2 object The second object.
return bool

AreEqualReferences() public static method

Checks whether the 2 specified objects are equal references. This method is better, simple because it also checks boxing so 2 integers with the same values that are boxed are equal. Two objects are considered equal if one of the following expressions returns true: Both values are null. Both values have the same reference, checked by object.ReferenceEquals. Both values are value types and have the same value. Both values are string type and have the same value.
public static AreEqualReferences ( object object1, object object2 ) : bool
object1 object The first object.
object2 object The second object.
return bool

IsNull() public static method

Determines whether the specified object is null or DBNull.Value.
public static IsNull ( object obj ) : bool
obj object The object to chec..
return bool