IronRuby.Builtins.RangeOps.Eql C# (CSharp) Method

Eql() private method

private Eql ( BinaryOpStorage equalsStorage, Range self, [ other ) : bool
equalsStorage BinaryOpStorage
self Range
other [
return bool
        public static bool Eql(BinaryOpStorage/*!*/ equalsStorage, Range/*!*/ self, [NotNull]Range/*!*/ other) {
            if (self == other) {
                return true;
            }

            var site = equalsStorage.GetCallSite("eql?");
            return Protocols.IsTrue(site.Target(site, self.Begin, other.Begin))
                && Protocols.IsTrue(site.Target(site, self.End, other.End))
                && self.ExcludeEnd == other.ExcludeEnd;
        }