System.UIntPtr.GetHashCode C# (CSharp) Method

GetHashCode() public method

public GetHashCode ( ) : int
return int
       	public unsafe override int GetHashCode() {
			return unchecked((int)((long)m_value)) & 0x7fffffff;
        }

Usage Example

 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Offset.GetHashCode();
         hashCode = hashCode * 31 + Length;
         if (Object != null)
         {
             hashCode = hashCode * 31 + Object.GetHashCode();
         }
         return(hashCode);
     }
 }
All Usage Examples Of System.UIntPtr::GetHashCode