C# Class Gammtek.Conduit.Helpers.ObjectHelper

Object helper class.
Afficher le fichier Open project: ME3Explorer/ME3Explorer

Méthodes publiques

Méthode 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 méthode

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.
Résultat bool

AreEqualReferences() public static méthode

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.
Résultat bool

IsNull() public static méthode

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