コード例 #1
0
        public ListContextBuilder With(IListContext context)
        {
            WithDense(context.Dense);
            WithAlignItems(context.AlignItems);

            return(this);
        }
コード例 #2
0
 /// <summary>
 ///     Returns a Slinq that enumerates over the element, index pairs of the specified list in decending order starting with the specified
 ///     index.
 ///     If startIndex is outside the element range of the list, the resulting Slinq will be empty.
 ///     Slinqs created by this method will chain removal operations to the underlying list.
 /// </summary>
 public static Slinq <ValueTuple <T, int>, IListContext <T> > SlinqWithIndexDescending <T>(this IList <T> list, int startIndex)
 {
     return(IListContext <T> .SlinqWithIndex(list, startIndex, -1));
 }
コード例 #3
0
 /// <summary>
 ///     Returns a Slinq that enumerates over the elements of the specified list using the specified start index and step.
 ///     If startIndex is outside the element range of the list, the resulting Slinq will be empty.
 ///     Slinqs created by this method will chain removal operations to the underlying list.
 /// </summary>
 public static Slinq <T, IListContext <T> > Slinq <T>(this IList <T> list, int startIndex, int step)
 {
     return(IListContext <T> .Slinq(list, startIndex, step));
 }
コード例 #4
0
 /// <summary>
 ///     Returns a Slinq that enumerates over the element, index pairs of the specified list in descending order.
 ///     Slinqs created by this method will chain removal operations to the underlying list.
 /// </summary>
 public static Slinq <ValueTuple <T, int>, IListContext <T> > SlinqWithIndexDescending <T>(this IList <T> list)
 {
     return(IListContext <T> .SlinqWithIndex(list, list.Count - 1, -1));
 }
コード例 #5
0
 /// <summary>
 ///     Returns a Slinq that enumerates over the elements of the specified list in decending order starting with the specified index.
 ///     If startIndex is outside the element range of the list, the resulting Slinq will be empty.
 ///     Slinqs created by this method will chain removal operations to the underlying list.
 /// </summary>
 public static Slinq <T, IListContext <T> > SlinqDescending <T>(this IList <T> list, int startIndex)
 {
     return(IListContext <T> .Slinq(list, startIndex, -1));
 }
コード例 #6
0
 /// <summary>
 ///     Returns a Slinq that enumerates over the elements of the specified list in descending order.
 ///     Slinqs created by this method will chain removal operations to the underlying list.
 /// </summary>
 public static Slinq <T, IListContext <T> > SlinqDescending <T>(this IList <T> list)
 {
     return(IListContext <T> .Slinq(list, list.Count - 1, -1));
 }
コード例 #7
0
 /// <summary>
 ///     Returns a Slinq that enumerates over the element, index pairs of the specified list in ascending order.
 ///     Slinqs created by this method will chain removal operations to the underlying list.
 /// </summary>
 public static Slinq <ValueTuple <T, int>, IListContext <T> > SlinqWithIndex <T>(this IList <T> list)
 {
     return(IListContext <T> .SlinqWithIndex(list, 0, 1));
 }
コード例 #8
0
 /// <summary>
 ///     Returns a Slinq that enumerates over the elements of the specified list in ascending order.
 ///     Slinqs created by this method will chain removal operations to the underlying list.
 /// </summary>
 public static Slinq <T, IListContext <T> > Slinq <T>(this IList <T> list)
 {
     return(IListContext <T> .Slinq(list, 0, 1));
 }
コード例 #9
0
 /// <summary>
 ///     Returns a Slinq that enumerates over the element, index pairs of the specified list using the specified start index and step.
 ///     If startIndex is outside the element range of the list, the resulting Slinq will be empty.
 ///     Slinqs created by this method will chain removal operations to the underlying list.
 /// </summary>
 public static Slinq <ValueTuple <T, int>, IListContext <T> > SlinqWithIndex <T>(this IList <T> list, int startIndex, int step)
 {
     return(IListContext <T> .SlinqWithIndex(list, startIndex, step));
 }
コード例 #10
0
 /// <summary>
 /// Returns a Slinq that enumerates over the element, index pairs of the specified list in ascending order starting with the specified index.
 ///
 /// If startIndex is outside the element range of the list, the resulting Slinq will be empty.
 ///
 /// Slinqs created by this method will chain removal operations to the underlying list.
 /// </summary>
 public static Slinq <Algebraics.Tuple <T, int>, IListContext <T> > SlinqWithIndex <T>(this IList <T> list, int startIndex)
 {
     return(IListContext <T> .SlinqWithIndex(list, startIndex, 1));
 }