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); }
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)); }
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); } }
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); } }