コード例 #1
0
ファイル: Counter.cs プロジェクト: cuijialang/HDL_ANTLR4
        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()));
                }
            }
        }