Exemplo n.º 1
0
 /// <summary>
 /// Protocol for determining value equality in Ruby (uses IsTrue protocol on result of == call)
 /// </summary>
 public static bool IsEqual(BinaryOpStorage /*!*/ equals, object lhs, object rhs)
 {
     return(IsEqual(equals.GetCallSite("=="), lhs, rhs));
 }
Exemplo n.º 2
0
        public static void Write(BinaryOpStorage /*!*/ writeStorage, object target, object value)
        {
            var site = writeStorage.GetCallSite("write");

            site.Target(site, target, value);
        }
Exemplo n.º 3
0
 public EqualityComparer(UnaryOpStorage /*!*/ hashStorage, BinaryOpStorage /*!*/ eqlStorage)
     : this(hashStorage.GetCallSite("hash"), eqlStorage.GetCallSite("eql?"))
 {
 }