UnsafeList GetCrep(UnsafeList source) { var l = GetCrep(); for (int i = 0; i < source.Length; i++) { l.Add(source.Read <Entity>(i)); } return(l); }
/// <summary> /// Checks two sorted lists for equality /// </summary> public static bool SequenceEqual <T>(this UnsafeList l, UnsafeList other) where T : unmanaged, IEquatable <T> { if (l.Length != other.Length) { return(false); } for (int i = 0; i < l.Length; i++) { if (!l.Read <T>(i).Equals(other.Read <T>(i))) { return(false); } } return(true); }