diff --git a/src/Spring/Spring.Core/Objects/Factory/Config/RuntimeObjectReference.cs b/src/Spring/Spring.Core/Objects/Factory/Config/RuntimeObjectReference.cs index 9a061bb4..c2b686f1 100644 --- a/src/Spring/Spring.Core/Objects/Factory/Config/RuntimeObjectReference.cs +++ b/src/Spring/Spring.Core/Objects/Factory/Config/RuntimeObjectReference.cs @@ -128,11 +128,20 @@ namespace Spring.Objects.Factory.Config #endregion #region Equality Members + + /// + /// Determines whether the specified RuntimeObjectReference is equal to the current RuntimeObjectReference. + /// + /// true if the specified RuntimeObjectReference is equal to the current RuntimeObjectReference; otherwise, false. protected bool Equals(RuntimeObjectReference other) { return string.Equals(_objectName, other._objectName) && _isToParent.Equals(other._isToParent); } + /// + /// Determines whether the specified System.Object is equal to the current RuntimeObjectReference. + /// + /// true if the specified RuntimeObjectReference is equal to the current RuntimeObjectReference; otherwise, false. public override bool Equals(object obj) { if (ReferenceEquals(null, obj)) return false; @@ -140,7 +149,11 @@ namespace Spring.Objects.Factory.Config if (obj.GetType() != this.GetType()) return false; return Equals((RuntimeObjectReference)obj); } - + + /// + /// Serves as a hash function for RuntimeObjectReference. + /// + /// A hash code for the currentRuntimeObjectReference. public override int GetHashCode() { unchecked @@ -148,6 +161,7 @@ namespace Spring.Objects.Factory.Config return (_objectName.GetHashCode() * 397) ^ _isToParent.GetHashCode(); } } + #endregion } }