コード例 #1
0
 /// <summary>
 /// Gets a hashcode for a wrapper.
 /// </summary>
 /// <param name="wrapper">The wrapper, not null.</param>
 /// <returns>The wrapper's hash code.</returns>
 protected internal virtual int GetHashCode(StaticWrapper wrapper)
 {
     return(wrapper.Handle.GetHashCode());
 }
コード例 #2
0
 /// <summary>
 /// Determines if two wrappers represent the same object.
 /// </summary>
 /// <param name="a">The first wrapper, not null.</param>
 /// <param name="b">The second wrapper, not null.</param>
 /// <returns>True if both wrapper represent the same object.</returns>
 protected internal virtual bool Equals(StaticWrapper a, StaticWrapper b)
 {
     return(a.Handle.Equals(b.Handle));
 }