ATMLCommonLibrary.utils.ParamField.ToString C# (CSharp) Method

ToString() public method

public ToString ( ) : String
return String
        public override String ToString()
        {
            String str;

            if (HasRange)
            {
                str = strRange + " " + BaseFrom.Value + " " + BaseFrom.Unit + " " + strTo + " " + BaseTo.Value + " " +
                      BaseTo.Unit;
                if (HasContinuous || HasBy)
                {
                    if (HasContinuous)
                    {
                        str += " " + strContinuous;
                    }
                    else // this.HasBy
                    {
                        str += " " + strBy + " " + By.Value + " " + By.Unit;
                    }
                }
            }
            else
            {
                str = Base.Value + " " + Base.Unit;
            }

            if (HasErrlmt)
            {
                if (ErrlmtPlus.Value == ErrlmtMinus.Value && ErrlmtPlus.Unit == ErrlmtMinus.Unit)
                {
                    str += " " + strErrlmt + " " + strPlusMinus + ErrlmtPlus.Value + " " + ErrlmtPlus.Unit;
                }
                else
                {
                    str += " " + strErrlmt + " " + strPlus + ErrlmtPlus.Value + " " + ErrlmtPlus.Unit + " " + strMinus +
                           ErrlmtMinus.Value + " " + ErrlmtMinus.Unit;
                }
            }
            return str;
        }