示例#1
0
            public bool Contains(T value)
            {
                int compare = value.CompareTo(Value);

                if (compare == 0)
                {
                    return(true);
                }

                if (compare < 0)
                {
                    return(LeftHand == null ? false : LeftHand.Contains(value));
                }
                else
                {
                    return(RightHand == null ? false : RightHand.Contains(value));
                }
            }