public IEnumerable <double> GetDoubleEnumerator() { yield return(DataConvertorUtils.ToLong(CurrentValue)); while (true) { if (isUpDirection == true) { yield return(DataConvertorUtils.ToLong(Next())); } else { yield return(DataConvertorUtils.ToLong(Prev())); } } }