コード例 #1
0
ファイル: IonComparison.cs プロジェクト: rickardp/IonDotnet
        private static int CompareSequence(IIonSequence s1, IIonSequence s2, bool strict)
        {
            var result = s1.Count - s2.Count;

            if (result != 0)
            {
                return(result);
            }

            var s2Enum = s2.GetEnumerator();

            foreach (var s1Field in s1)
            {
                if (!s2Enum.MoveNext())
                {
                    result = 1;
                    break;
                }

                result = IonCompare(s1Field, s2Enum.Current, strict);
                if (result != 0)
                {
                    break;
                }
            }

            s2Enum.Dispose();
            return(result);
        }
コード例 #2
0
 public IIonList NewList(IIonSequence children)
 {
     throw new NotImplementedException();
 }