Пример #1
0
        protected override bool Equals(IVariant other)
        {
            FFloat castedOther = other as FFloat;

            FAssert.IsNotNull(castedOther, $"Other is not type of {nameof(FFloat)}");

            return(this._value == castedOther._value);
        }
Пример #2
0
        protected override int CompareTo(IVariant other)
        {
            FFloat castedOther = other as FFloat;

            FAssert.IsNotNull(castedOther, $"Other is not type of {nameof(FFloat)}");

            return(_value.CompareTo(castedOther._value));
        }
Пример #3
0
 public static bool Equals(FFloat lhs, FFloat rhs)
 {
     if ((object)lhs == rhs)
     {
         return(true);
     }
     else if (null == lhs || null == rhs)
     {
         return(false);
     }
     else
     {
         return(rhs._value == lhs._value);
     }
 }
Пример #4
0
        public override bool Equals(object other)
        {
            FFloat castedOther = other as FFloat;

            FAssert.IsNotNull(castedOther, $"Other is not type of {nameof(FFloat)}");

            if (other == null || castedOther == null)
            {
                return(false);
            }
            else if ((object)this == other)
            {
                return(true);
            }
            else
            {
                return(_value == castedOther._value);
            }
        }