C# Class SharpArch.Domain.DomainModel.ValueObject

Inheritance: BaseObject
Mostrar archivo Open project: sharparchitecture/Sharp-Architecture

Public Methods

Method Description
Equals ( object obj ) : bool

Determines whether the specified Object is equal to this instance.

GetHashCode ( ) : int

Returns a hash code for this instance.

This is used to provide the hash code identifier of an object using the signature properties of the object; although it's necessary for NHibernate's use, this can also be useful for business logic purposes and has been included in this base class, accordingly. Since it is recommended that GetHashCode change infrequently, if at all, in an object's lifetime, it's important that properties are carefully selected which truly represent the signature of an object.

operator ( ) : bool

Implements the != operator.

Protected Methods

Method Description
GetTypeSpecificSignatureProperties ( ) : System.Reflection.PropertyInfo[]

Returns the signature properties that are specific to the type of the current object.

Method Details

Equals() public method

Determines whether the specified Object is equal to this instance.
public Equals ( object obj ) : bool
obj object The to compare with the current .
return bool

GetHashCode() public method

Returns a hash code for this instance.
This is used to provide the hash code identifier of an object using the signature properties of the object; although it's necessary for NHibernate's use, this can also be useful for business logic purposes and has been included in this base class, accordingly. Since it is recommended that GetHashCode change infrequently, if at all, in an object's lifetime, it's important that properties are carefully selected which truly represent the signature of an object.
public GetHashCode ( ) : int
return int

GetTypeSpecificSignatureProperties() protected method

Returns the signature properties that are specific to the type of the current object.
ValueObject has properties marked with
protected GetTypeSpecificSignatureProperties ( ) : System.Reflection.PropertyInfo[]
return System.Reflection.PropertyInfo[]

operator() public static method

Implements the != operator.
public static operator ( ) : bool
return bool