Exemplo n.º 1
0
        public static bool operator==(GfRange2d lhs, GfRange2d rhs)
        {
            // The Swig binding glue will re-enter this operator comparing to null, so
            // that case must be handled explicitly to avoid an infinite loop. This is still
            // not great, since it crosses the C#/C++ barrier twice. A better approache might
            // be to return a simple value from C++ that can be compared in C#.
            bool lnull = lhs as object == null;
            bool rnull = rhs as object == null;

            return((lnull == rnull) && ((lnull && rnull) || GfRange2d.Equals(lhs, rhs)));
        }
Exemplo n.º 2
0
 override public bool Equals(object rhs)
 {
     return(GfRange2d.Equals(this, rhs as GfRange2d));
 }