1818
1919namespace OnixLabs . Core . Collections ;
2020
21+ // ReSharper disable MemberCanBePrivate.Global
2122public static partial class Collection
2223{
2324 /// <summary>
24- /// Creates an enumerable of the specified items.
25+ /// Creates an <see cref="IEnumerable{T}"/> of the specified items.
2526 /// </summary>
2627 /// <param name="items">The items which will populate the enumerable.</param>
2728 /// <typeparam name="T">The underlying type of the enumerable.</typeparam>
2829 /// <returns>Returns an enumerable populated with the specified items.</returns>
2930 public static IEnumerable < T > EnumerableOf < T > ( params IEnumerable < T > items ) => items ;
3031
3132 /// <summary>
32- /// Creates an array of the specified items.
33+ /// Creates a <typeparamref name="T"/> array of the specified items.
3334 /// </summary>
3435 /// <param name="items">The items which will populate the array.</param>
3536 /// <typeparam name="T">The underlying type of the array.</typeparam>
3637 /// <returns>Returns an array populated with the specified items.</returns>
3738 public static T [ ] ArrayOf < T > ( params T [ ] items ) => items ;
3839
3940 /// <summary>
40- /// Creates an immutable array of the specified items.
41+ /// Creates an <see cref="ImmutableArray{T}"/> of the specified items.
4142 /// </summary>
4243 /// <param name="items">The items which will populate the immutable array.</param>
4344 /// <typeparam name="T">The underlying type of the immutable array.</typeparam>
4445 /// <returns>Returns an immutable array populated with the specified items.</returns>
4546 public static ImmutableArray < T > ImmutableArrayOf < T > ( params ImmutableArray < T > items ) => items ;
4647
4748 /// <summary>
48- /// Creates a list of the specified items.
49+ /// Creates a <see cref="List{T}"/> of the specified items.
4950 /// </summary>
5051 /// <param name="items">The items which will populate the list.</param>
5152 /// <typeparam name="T">The underlying type of the list.</typeparam>
5253 /// <returns>Returns a list populated with the specified items.</returns>
5354 public static List < T > ListOf < T > ( params List < T > items ) => items ;
5455
5556 /// <summary>
56- /// Creates an immutable list of the specified items.
57+ /// Creates an <see cref="ImmutableList{T}"/> of the specified items.
5758 /// </summary>
5859 /// <param name="items">The items which will populate the immutable list.</param>
5960 /// <typeparam name="T">The underlying type of the immutable list.</typeparam>
6061 /// <returns>Returns an immutable list populated with the specified items.</returns>
6162 public static ImmutableList < T > ImmutableListOf < T > ( params ImmutableList < T > items ) => items ;
6263
6364 /// <summary>
64- /// Creates a hash set of the specified items.
65+ /// Creates a <see cref="HashSet{T}"/> of the specified items.
6566 /// </summary>
6667 /// <param name="items">The items which will populate the hash set.</param>
6768 /// <typeparam name="T">The underlying type of the hash set.</typeparam>
6869 /// <returns>Returns a hash set populated with the specified items.</returns>
6970 public static HashSet < T > HashSetOf < T > ( params HashSet < T > items ) => items ;
7071
7172 /// <summary>
72- /// Creates an immutable hash set of the specified items.
73+ /// Creates an <see cref="ImmutableHashSet{T}"/> of the specified items.
7374 /// </summary>
7475 /// <param name="items">The items which will populate the immutable hash set.</param>
7576 /// <typeparam name="T">The underlying type of the immutable hash set.</typeparam>
7677 /// <returns>Returns an immutable hash set populated with the specified items.</returns>
7778 public static ImmutableHashSet < T > ImmutableHashSetOf < T > ( params ImmutableHashSet < T > items ) => items ;
7879
7980 /// <summary>
80- /// Creates a sorted set of the specified items.
81+ /// Creates a <see cref="SortedSet{T}"/> of the specified items.
8182 /// </summary>
8283 /// <param name="items">The items which will populate the sorted set.</param>
8384 /// <typeparam name="T">The underlying type of the sorted set.</typeparam>
8485 /// <returns>Returns a sorted set populated with the specified items.</returns>
8586 public static SortedSet < T > SortedSetOf < T > ( params SortedSet < T > items ) => items ;
8687
8788 /// <summary>
88- /// Creates an immutable sorted set of the specified items.
89+ /// Creates an <see cref="ImmutableSortedSet{T}"/> of the specified items.
8990 /// </summary>
9091 /// <param name="items">The items which will populate the immutable sorted set.</param>
9192 /// <typeparam name="T">The underlying type of the immutable sorted set.</typeparam>
9293 /// <returns>Returns an immutable sorted set populated with the specified items.</returns>
9394 public static ImmutableSortedSet < T > ImmutableSortedSetOf < T > ( params ImmutableSortedSet < T > items ) => items ;
9495
9596 /// <summary>
96- /// Creates a stack of the specified items.
97+ /// Creates a <see cref="Stack{T}"/> of the specified items.
9798 /// </summary>
9899 /// <param name="items">The items which will populate the stack.</param>
99100 /// <typeparam name="T">The underlying type of the stack.</typeparam>
100101 /// <returns>Returns a stack populated with the specified items.</returns>
101102 public static Stack < T > StackOf < T > ( params IEnumerable < T > items ) => new ( items ) ;
102103
103104 /// <summary>
104- /// Creates an immutable stack of the specified items.
105+ /// Creates an <see cref="ImmutableStack{T}"/> of the specified items.
105106 /// </summary>
106107 /// <param name="items">The items which will populate the immutable stack.</param>
107108 /// <typeparam name="T">The underlying type of the immutable stack.</typeparam>
108109 /// <returns>Returns an immutable stack populated with the specified items.</returns>
109110 public static ImmutableStack < T > ImmutableStackOf < T > ( params ImmutableStack < T > items ) => items ;
110111
111112 /// <summary>
112- /// Creates a queue of the specified items.
113+ /// Creates a <see cref="Queue{T}"/> of the specified items.
113114 /// </summary>
114115 /// <param name="items">The items which will populate the queue.</param>
115116 /// <typeparam name="T">The underlying type of the queue.</typeparam>
116117 /// <returns>Returns a queue populated with the specified items.</returns>
117118 public static Queue < T > QueueOf < T > ( params IEnumerable < T > items ) => new ( items ) ;
118119
119120 /// <summary>
120- /// Creates an immutable queue of the specified items.
121+ /// Creates an <see cref="ImmutableQueue{T}"/> of the specified items.
121122 /// </summary>
122123 /// <param name="items">The items which will populate the immutable queue.</param>
123124 /// <typeparam name="T">The underlying type of the immutable queue.</typeparam>
124125 /// <returns>Returns an immutable queue populated with the specified items.</returns>
125126 public static ImmutableQueue < T > ImmutableQueueOf < T > ( params ImmutableQueue < T > items ) => items ;
126127
127128 /// <summary>
128- /// Create a dictionary of the specified items.
129+ /// Create a <see cref="Dictionary{TKey,TValue}"/> of the specified items.
129130 /// </summary>
130131 /// <param name="items">The items which wil populate the dictionary.</param>
131132 /// <typeparam name="TKey">The underlying type of the dictionary key.</typeparam>
@@ -135,7 +136,7 @@ public static Dictionary<TKey, TValue> DictionaryOf<TKey, TValue>
135136 ( params IEnumerable < KeyValuePair < TKey , TValue > > items ) where TKey : notnull => new ( items ) ;
136137
137138 /// <summary>
138- /// Create a dictionary of the specified items.
139+ /// Create a <see cref="Dictionary{TKey,TValue}"/> of the specified items.
139140 /// </summary>
140141 /// <param name="items">The items which wil populate the dictionary.</param>
141142 /// <typeparam name="TKey">The underlying type of the dictionary key.</typeparam>
@@ -146,7 +147,7 @@ public static Dictionary<TKey, TValue> DictionaryOf<TKey, TValue>
146147 DictionaryOf ( items . Select ( item => new KeyValuePair < TKey , TValue > ( item . key , item . value ) ) ) ;
147148
148149 /// <summary>
149- /// Create an immutable dictionary of the specified items.
150+ /// Create an <see cref="ImmutableDictionary{TKey,TValue}"/> of the specified items.
150151 /// </summary>
151152 /// <param name="items">The items which wil populate the immutable dictionary.</param>
152153 /// <typeparam name="TKey">The underlying type of the immutable dictionary key.</typeparam>
@@ -156,7 +157,7 @@ public static ImmutableDictionary<TKey, TValue> ImmutableDictionaryOf<TKey, TVal
156157 ( params IEnumerable < KeyValuePair < TKey , TValue > > items ) where TKey : notnull => ImmutableDictionary . CreateRange ( items ) ;
157158
158159 /// <summary>
159- /// Create an immutable dictionary of the specified items.
160+ /// Create an <see cref="ImmutableDictionary{TKey,TValue}"/> of the specified items.
160161 /// </summary>
161162 /// <param name="items">The items which wil populate the immutable dictionary.</param>
162163 /// <typeparam name="TKey">The underlying type of the immutable dictionary key.</typeparam>
@@ -167,7 +168,7 @@ public static ImmutableDictionary<TKey, TValue> ImmutableDictionaryOf<TKey, TVal
167168 ImmutableDictionary . CreateRange ( items . Select ( item => new KeyValuePair < TKey , TValue > ( item . key , item . value ) ) ) ;
168169
169170 /// <summary>
170- /// Create a sorted dictionary of the specified items.
171+ /// Create a <see cref="SortedDictionary{TKey,TValue}"/> of the specified items.
171172 /// </summary>
172173 /// <param name="items">The items which wil populate the sorted dictionary.</param>
173174 /// <typeparam name="TKey">The underlying type of the sorted dictionary key.</typeparam>
@@ -177,7 +178,7 @@ public static SortedDictionary<TKey, TValue> SortedDictionaryOf<TKey, TValue>
177178 ( params IEnumerable < KeyValuePair < TKey , TValue > > items ) where TKey : notnull => new ( DictionaryOf ( items ) ) ;
178179
179180 /// <summary>
180- /// Create a sorted dictionary of the specified items.
181+ /// Create a <see cref="SortedDictionary{TKey,TValue}"/> of the specified items.
181182 /// </summary>
182183 /// <param name="items">The items which wil populate the sorted dictionary.</param>
183184 /// <typeparam name="TKey">The underlying type of the sorted dictionary key.</typeparam>
@@ -187,7 +188,7 @@ public static SortedDictionary<TKey, TValue> SortedDictionaryOf<TKey, TValue>
187188 ( params IEnumerable < ( TKey key , TValue value ) > items ) where TKey : notnull => new ( DictionaryOf ( items ) ) ;
188189
189190 /// <summary>
190- /// Create an immutable sorted dictionary of the specified items.
191+ /// Create an <see cref="ImmutableSortedDictionary{TKey,TValue}"/> of the specified items.
191192 /// </summary>
192193 /// <param name="items">The items which wil populate the immutable sorted dictionary.</param>
193194 /// <typeparam name="TKey">The underlying type of the immutable sorted dictionary key.</typeparam>
@@ -197,7 +198,7 @@ public static ImmutableSortedDictionary<TKey, TValue> ImmutableSortedDictionaryO
197198 ( params IEnumerable < KeyValuePair < TKey , TValue > > items ) where TKey : notnull => ImmutableSortedDictionary . CreateRange ( items ) ;
198199
199200 /// <summary>
200- /// Create an immutable sorted dictionary of the specified items.
201+ /// Create an <see cref="ImmutableSortedDictionary{TKey,TValue}"/> of the specified items.
201202 /// </summary>
202203 /// <param name="items">The items which wil populate the immutable sorted dictionary.</param>
203204 /// <typeparam name="TKey">The underlying type of the immutable sorted dictionary key.</typeparam>
0 commit comments