Пример #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="range"></param>
        /// <returns></returns>
        public static System.Range ToRange(this Range <int> range)
        {
            var start = range.Start < 0 ? ~range.Start : range.Start;
            var end   = range.End < 0 ? ~range.End : range.End;

            var startIndex = new System.Index(start, range.Start < 0);
            var endIndex   = new System.Index(end, range.End < 0);

            if (end <= start && !(startIndex.IsFromEnd && endIndex.IsFromEnd))
            {
                return(new System.Range(endIndex, startIndex));
            }

            return(new System.Range(startIndex, endIndex));
        }
 public static System.Range EndAt(System.Index end)
 {
     throw null;
 }
 public Range(System.Index start, System.Index end)
 {
     throw null;
 }
 public static System.Range StartAt(System.Index start)
 {
     throw null;
 }
Пример #5
0
 public static System.ReadOnlyMemory <System.Char8> AsMemory(this System.Utf8String?text, System.Index startIndex)
 {
     throw null;
 }
Пример #6
0
 public static System.Span <T> AsSpan <T>(this System.ArraySegment <T> segment, System.Index startIndex)
 {
     throw null;
 }
Пример #7
0
 public static System.Memory <T> AsMemory <T>(this T[] array, System.Index startIndex)
 {
     throw null;
 }
Пример #8
0
 public static System.ReadOnlyMemory <char> AsMemory(this string text, System.Index startIndex)
 {
     throw null;
 }
Пример #9
0
 public static System.Span <T> AsSpan <T>(this T[] array, System.Index startIndex)
 {
     throw null;
 }
 public static System.ReadOnlyMemory <byte> AsMemoryBytes(this System.Utf8String?text, System.Index startIndex)
 {
     throw null;
 }
Пример #11
0
 public static TSource ElementAt <TSource>(this System.Linq.IQueryable <TSource> source, System.Index index)
 {
     throw null;
 }