C# Class DomainDrivenDelivery.Utilities.IDKey

Wrap an identity key (Object.GetHashCode()) so that an object can only be Equal() to itself. This is necessary to disambiguate the occasional duplicate identityHashCodes that can occur.
Exibir arquivo Open project: awhatley/dddsample.net Class Usage Examples

Public Methods

Method Description
Equals ( object other ) : bool
GetHashCode ( ) : int
IDKey ( object _value )

Method Details

Equals() public method

public Equals ( object other ) : bool
other object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

IDKey() public method

public IDKey ( object _value )
_value object