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); }
public IIonList NewList(IIonSequence children) { throw new NotImplementedException(); }