예제 #1
0
        public override string ToString()
        {
            string ls = LowestValue.Equals(minValue) ? "-Inf" : LowestValue.ToString();
            string hs = HighestValue.Equals(maxValue) ? "Inf" : HighestValue.ToString();

            return(Value.ToString() + " [" + ls + ", " + hs + "]");
        }
예제 #2
0
 /// <summary>
 /// gets the current info and places it in an info array the will be saved
 /// </summary>
 /// <returns>the info array</returns>
 public string[] GetInfo()
 {
     string[] info = new string[4];
     info[0] = LastValue.ToString();
     info[1] = HighestValue.ToString();
     info[2] = Key.ToString();
     info[3] = Name;
     return(info);
 }