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

Equals() public method

public Equals ( BinaryOpStorage eqlStorage, object obj ) : bool
eqlStorage BinaryOpStorage
obj object
return bool
        public bool Equals(BinaryOpStorage/*!*/ eqlStorage, object obj) {
            var other = obj as RubyStruct;
            if (!StructReferenceEquals(other)) {
                return false;
            }
            
            return RubyArray.Equals(eqlStorage, _data, other._data);
        }

Usage Example

Example #1
0
 public static bool Equal(BinaryOpStorage/*!*/ eqlStorage, RubyStruct/*!*/ self, object other) {
     return self.Equals(eqlStorage, other);
 }
All Usage Examples Of IronRuby.Builtins.RubyStruct::Equals