Exemple #1
0
        public static SnapshotSpan GetOverarchingSpan(this NormalizedSnapshotSpanCollection collection)
        {
            collection.ThrowOnNull(nameof(collection));

            SnapshotSpan start = collection[0];
            SnapshotSpan end   = collection[collection.Count - 1];

            return(new SnapshotSpan(start.Start, end.End));
        }