@@ -26,7 +26,7 @@ partial class Algorithms
26
26
/// <param name="value">The value to compare</param>
27
27
/// <returns>The tuple of lower bound and upper bound for the value</returns>
28
28
[ Pure ]
29
- public static TupleStruct < int , int > EqualRange ( [ NotNull , InstantHandle ] this IList < float > list , float value )
29
+ public static ValueTuple < int , int > EqualRange ( [ NotNull , InstantHandle ] this IList < float > list , float value )
30
30
=> list . EqualRange ( value , 0 ) ;
31
31
32
32
/// <summary>
@@ -39,7 +39,7 @@ public static TupleStruct<int, int> EqualRange([NotNull, InstantHandle] this ILi
39
39
/// <param name="from">The minimum index</param>
40
40
/// <returns>The tuple of lower bound and upper bound for the value</returns>
41
41
[ Pure ]
42
- public static TupleStruct < int , int > EqualRange ( [ NotNull , InstantHandle ] this IList < float > list , float value , int from )
42
+ public static ValueTuple < int , int > EqualRange ( [ NotNull , InstantHandle ] this IList < float > list , float value , int from )
43
43
=> list . EqualRange ( value , from , list . Count ) ;
44
44
45
45
/// <summary>
@@ -53,7 +53,7 @@ public static TupleStruct<int, int> EqualRange([NotNull, InstantHandle] this ILi
53
53
/// <param name="to">The upper bound for the index (not included)</param>
54
54
/// <returns>The tuple of lower bound and upper bound for the value</returns>
55
55
[ Pure ]
56
- public static TupleStruct < int , int > EqualRange (
56
+ public static ValueTuple < int , int > EqualRange (
57
57
[ NotNull , InstantHandle ] this IList < float > list ,
58
58
float value ,
59
59
int from ,
@@ -84,7 +84,7 @@ public static TupleStruct<int, int> EqualRange(
84
84
upperBoundTo = to ;
85
85
}
86
86
}
87
- return TupleStruct . Create ( from , UpperBoundCore ( list , value , upperBoundFrom , upperBoundTo ) ) ;
87
+ return ValueTuple . Create ( from , UpperBoundCore ( list , value , upperBoundFrom , upperBoundTo ) ) ;
88
88
}
89
89
#endregion
90
90
@@ -98,7 +98,7 @@ public static TupleStruct<int, int> EqualRange(
98
98
/// <param name="value">The value to compare</param>
99
99
/// <returns>The tuple of lower bound and upper bound for the value</returns>
100
100
[ Pure ]
101
- public static TupleStruct < int , int > EqualRange ( [ NotNull , InstantHandle ] this IList < double > list , double value )
101
+ public static ValueTuple < int , int > EqualRange ( [ NotNull , InstantHandle ] this IList < double > list , double value )
102
102
=> list . EqualRange ( value , 0 ) ;
103
103
104
104
/// <summary>
@@ -111,7 +111,7 @@ public static TupleStruct<int, int> EqualRange([NotNull, InstantHandle] this ILi
111
111
/// <param name="from">The minimum index</param>
112
112
/// <returns>The tuple of lower bound and upper bound for the value</returns>
113
113
[ Pure ]
114
- public static TupleStruct < int , int > EqualRange ( [ NotNull , InstantHandle ] this IList < double > list , double value , int from )
114
+ public static ValueTuple < int , int > EqualRange ( [ NotNull , InstantHandle ] this IList < double > list , double value , int from )
115
115
=> list . EqualRange ( value , from , list . Count ) ;
116
116
117
117
/// <summary>
@@ -125,7 +125,7 @@ public static TupleStruct<int, int> EqualRange([NotNull, InstantHandle] this ILi
125
125
/// <param name="to">The upper bound for the index (not included)</param>
126
126
/// <returns>The tuple of lower bound and upper bound for the value</returns>
127
127
[ Pure ]
128
- public static TupleStruct < int , int > EqualRange (
128
+ public static ValueTuple < int , int > EqualRange (
129
129
[ NotNull , InstantHandle ] this IList < double > list ,
130
130
double value ,
131
131
int from ,
@@ -156,7 +156,7 @@ public static TupleStruct<int, int> EqualRange(
156
156
upperBoundTo = to ;
157
157
}
158
158
}
159
- return TupleStruct . Create ( from , UpperBoundCore ( list , value , upperBoundFrom , upperBoundTo ) ) ;
159
+ return ValueTuple . Create ( from , UpperBoundCore ( list , value , upperBoundFrom , upperBoundTo ) ) ;
160
160
}
161
161
#endregion
162
162
@@ -170,7 +170,7 @@ public static TupleStruct<int, int> EqualRange(
170
170
/// <param name="value">The value to compare</param>
171
171
/// <returns>The tuple of lower bound and upper bound for the value</returns>
172
172
[ Pure ]
173
- public static TupleStruct < int , int > EqualRange ( [ NotNull , InstantHandle ] this IList < TimeSpan > list , TimeSpan value )
173
+ public static ValueTuple < int , int > EqualRange ( [ NotNull , InstantHandle ] this IList < TimeSpan > list , TimeSpan value )
174
174
=> list . EqualRange ( value , 0 ) ;
175
175
176
176
/// <summary>
@@ -183,7 +183,7 @@ public static TupleStruct<int, int> EqualRange([NotNull, InstantHandle] this ILi
183
183
/// <param name="from">The minimum index</param>
184
184
/// <returns>The tuple of lower bound and upper bound for the value</returns>
185
185
[ Pure ]
186
- public static TupleStruct < int , int > EqualRange ( [ NotNull , InstantHandle ] this IList < TimeSpan > list , TimeSpan value , int from )
186
+ public static ValueTuple < int , int > EqualRange ( [ NotNull , InstantHandle ] this IList < TimeSpan > list , TimeSpan value , int from )
187
187
=> list . EqualRange ( value , from , list . Count ) ;
188
188
189
189
/// <summary>
@@ -197,7 +197,7 @@ public static TupleStruct<int, int> EqualRange([NotNull, InstantHandle] this ILi
197
197
/// <param name="to">The upper bound for the index (not included)</param>
198
198
/// <returns>The tuple of lower bound and upper bound for the value</returns>
199
199
[ Pure ]
200
- public static TupleStruct < int , int > EqualRange (
200
+ public static ValueTuple < int , int > EqualRange (
201
201
[ NotNull , InstantHandle ] this IList < TimeSpan > list ,
202
202
TimeSpan value ,
203
203
int from ,
@@ -228,7 +228,7 @@ public static TupleStruct<int, int> EqualRange(
228
228
upperBoundTo = to ;
229
229
}
230
230
}
231
- return TupleStruct . Create ( from , UpperBoundCore ( list , value , upperBoundFrom , upperBoundTo ) ) ;
231
+ return ValueTuple . Create ( from , UpperBoundCore ( list , value , upperBoundFrom , upperBoundTo ) ) ;
232
232
}
233
233
#endregion
234
234
@@ -242,7 +242,7 @@ public static TupleStruct<int, int> EqualRange(
242
242
/// <param name="value">The value to compare</param>
243
243
/// <returns>The tuple of lower bound and upper bound for the value</returns>
244
244
[ Pure ]
245
- public static TupleStruct < int , int > EqualRange ( [ NotNull , InstantHandle ] this IList < DateTime > list , DateTime value )
245
+ public static ValueTuple < int , int > EqualRange ( [ NotNull , InstantHandle ] this IList < DateTime > list , DateTime value )
246
246
=> list . EqualRange ( value , 0 ) ;
247
247
248
248
/// <summary>
@@ -255,7 +255,7 @@ public static TupleStruct<int, int> EqualRange([NotNull, InstantHandle] this ILi
255
255
/// <param name="from">The minimum index</param>
256
256
/// <returns>The tuple of lower bound and upper bound for the value</returns>
257
257
[ Pure ]
258
- public static TupleStruct < int , int > EqualRange ( [ NotNull , InstantHandle ] this IList < DateTime > list , DateTime value , int from )
258
+ public static ValueTuple < int , int > EqualRange ( [ NotNull , InstantHandle ] this IList < DateTime > list , DateTime value , int from )
259
259
=> list . EqualRange ( value , from , list . Count ) ;
260
260
261
261
/// <summary>
@@ -269,7 +269,7 @@ public static TupleStruct<int, int> EqualRange([NotNull, InstantHandle] this ILi
269
269
/// <param name="to">The upper bound for the index (not included)</param>
270
270
/// <returns>The tuple of lower bound and upper bound for the value</returns>
271
271
[ Pure ]
272
- public static TupleStruct < int , int > EqualRange (
272
+ public static ValueTuple < int , int > EqualRange (
273
273
[ NotNull , InstantHandle ] this IList < DateTime > list ,
274
274
DateTime value ,
275
275
int from ,
@@ -300,7 +300,7 @@ public static TupleStruct<int, int> EqualRange(
300
300
upperBoundTo = to ;
301
301
}
302
302
}
303
- return TupleStruct . Create ( from , UpperBoundCore ( list , value , upperBoundFrom , upperBoundTo ) ) ;
303
+ return ValueTuple . Create ( from , UpperBoundCore ( list , value , upperBoundFrom , upperBoundTo ) ) ;
304
304
}
305
305
#endregion
306
306
@@ -314,7 +314,7 @@ public static TupleStruct<int, int> EqualRange(
314
314
/// <param name="value">The value to compare</param>
315
315
/// <returns>The tuple of lower bound and upper bound for the value</returns>
316
316
[ Pure ]
317
- public static TupleStruct < int , int > EqualRange ( [ NotNull , InstantHandle ] this IList < DateTimeOffset > list , DateTimeOffset value )
317
+ public static ValueTuple < int , int > EqualRange ( [ NotNull , InstantHandle ] this IList < DateTimeOffset > list , DateTimeOffset value )
318
318
=> list . EqualRange ( value , 0 ) ;
319
319
320
320
/// <summary>
@@ -327,7 +327,7 @@ public static TupleStruct<int, int> EqualRange([NotNull, InstantHandle] this ILi
327
327
/// <param name="from">The minimum index</param>
328
328
/// <returns>The tuple of lower bound and upper bound for the value</returns>
329
329
[ Pure ]
330
- public static TupleStruct < int , int > EqualRange ( [ NotNull , InstantHandle ] this IList < DateTimeOffset > list , DateTimeOffset value , int from )
330
+ public static ValueTuple < int , int > EqualRange ( [ NotNull , InstantHandle ] this IList < DateTimeOffset > list , DateTimeOffset value , int from )
331
331
=> list . EqualRange ( value , from , list . Count ) ;
332
332
333
333
/// <summary>
@@ -341,7 +341,7 @@ public static TupleStruct<int, int> EqualRange([NotNull, InstantHandle] this ILi
341
341
/// <param name="to">The upper bound for the index (not included)</param>
342
342
/// <returns>The tuple of lower bound and upper bound for the value</returns>
343
343
[ Pure ]
344
- public static TupleStruct < int , int > EqualRange (
344
+ public static ValueTuple < int , int > EqualRange (
345
345
[ NotNull , InstantHandle ] this IList < DateTimeOffset > list ,
346
346
DateTimeOffset value ,
347
347
int from ,
@@ -372,7 +372,7 @@ public static TupleStruct<int, int> EqualRange(
372
372
upperBoundTo = to ;
373
373
}
374
374
}
375
- return TupleStruct . Create ( from , UpperBoundCore ( list , value , upperBoundFrom , upperBoundTo ) ) ;
375
+ return ValueTuple . Create ( from , UpperBoundCore ( list , value , upperBoundFrom , upperBoundTo ) ) ;
376
376
}
377
377
#endregion
378
378
0 commit comments