Property | Type | Description | |
---|---|---|---|
HashMultiplier | int |
Method | Description | |
---|---|---|
Equals ( Object obj ) : bool |
Determines whether the specified System.Object is equal to this instance.
|
|
GetHashCode ( ) : int |
Returns a hash code for this instance. This is used to provide the hashcode 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. |
|
GetSignatureProperties ( ) : IEnumerable |
Gets the signature properties. Static dictionary used to reduce performance. So properties will be retrieved only once per class for each thread after application start. |
|
HasSameObjectSignatureAs ( |
You may override this method to provide your own comparison routine.
|
Method | Description | |
---|---|---|
GetInnerType ( ) : |
When NHibernate proxies objects, it masks the type of the actual entity object. This wrapper burrows into the proxied object to get its actual type. Although this assumes NHibernate is being used, it doesn't require any NHibernate related dependencies and has no bad side effects if NHibernate isn't being used. Related discussion is at http://groups.google.com/group/sharp-architecture/browse_thread/thread/ddd05f9baede023a . |
|
GetTypeSpecificSignatureProperties ( ) : IEnumerable |
Enforces the template method pattern to have child objects determine which specific properties should and should not be included in the object signature comparison. BaseObject already takes care of performance caching, so this method shouldn't worry about caching, just return set of properties. |
public Equals ( Object obj ) : bool | ||
obj | Object | The |
return | bool |
public GetSignatureProperties ( ) : IEnumerable |
||
return | IEnumerable |
protected abstract GetTypeSpecificSignatureProperties ( ) : IEnumerable |
||
return | IEnumerable |
public HasSameObjectSignatureAs ( |
||
compareTo | The |
|
return | bool |