IronRuby.Builtins.RubyStruct.GetHashCode C# (CSharp) Method

GetHashCode() public method

public GetHashCode ( UnaryOpStorage hashStorage, ConversionStorage fixnumCast ) : int
hashStorage UnaryOpStorage
fixnumCast ConversionStorage
return int
        public int GetHashCode(UnaryOpStorage/*!*/ hashStorage, ConversionStorage<int>/*!*/ fixnumCast) {
            // hash is: struct's hash, plus data hashes
            return StructInfo.GetHashCode() ^ RubyArray.GetHashCode(hashStorage, fixnumCast, _data);
        }

Usage Example

Example #1
0
 public static int Hash(UnaryOpStorage/*!*/ hashStorage, ConversionStorage<int>/*!*/ fixnumCast, RubyStruct/*!*/ self) {
     return self.GetHashCode(hashStorage, fixnumCast);
 }
All Usage Examples Of IronRuby.Builtins.RubyStruct::GetHashCode