You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Determines whether the specified <see cref = "ReferenceWrapper{TObject}" /> is equal to the current <see cref = "ReferenceWrapper{TObject}" />.
93
+
/// </summary>
94
+
/// <param name = "other">The <see cref = "ReferenceWrapper{TObject}" /> to compare with the current <see cref = "ReferenceWrapper{TObject}" />.</param>
95
+
/// <returns>True if the specified <see cref = "ReferenceWrapper{TObject}" /> is equal to the current <see cref = "ReferenceWrapper{TObject}" />; otherwise, false.</returns>
96
+
publicboolEquals(ReferenceWrapper<TObject>other)
97
+
{
98
+
returnequalityHelper.Equals(this,other);
99
+
}
100
+
101
+
/// <summary>
102
+
/// Determines whether the specified <see cref = "Object" /> is equal to the current <see cref = "ReferenceWrapper{TObject}" />.
103
+
/// </summary>
104
+
/// <param name = "obj">The <see cref = "Object" /> to compare with the current <see cref = "ReferenceWrapper{TObject}" />.</param>
105
+
/// <returns>True if the specified <see cref = "Object" /> is equal to the current <see cref = "ReferenceWrapper{TObject}" />; otherwise, false.</returns>
106
+
publicoverrideboolEquals(objectobj)
107
+
{
108
+
returnEquals(objasReferenceWrapper<TObject>);
109
+
}
110
+
111
+
/// <summary>
112
+
/// Returns the hash code for this instance.
113
+
/// </summary>
114
+
/// <returns>A 32-bit signed integer hash code.</returns>
115
+
publicoverrideintGetHashCode()
116
+
{
117
+
returnequalityHelper.GetHashCode(this);
118
+
}
119
+
120
+
/// <summary>
121
+
/// Tests if two <see cref = "ReferenceWrapper{TObject}" /> are equal.
122
+
/// </summary>
123
+
/// <param name = "left">First <see cref = "ReferenceWrapper{TObject}" /> to compare.</param>
124
+
/// <param name = "right">Second <see cref = "ReferenceWrapper{TObject}" /> to compare.</param>
125
+
/// <returns>True if the two objects are equal; false otherwise.</returns>
0 commit comments