Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Select< TSource, TResult >() [2/2]

static IEnumerable< TResult > System.Linq.Enumerable.Select< TSource, TResult > ( this IEnumerable< TSource > source,
Func< TSource, TResult > selector )
inlinestatic

Definition at line 7272 of file Enumerable.cs.

7273 {
7274 if (source == null)
7275 {
7276 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.source);
7277 }
7278 if (selector == null)
7279 {
7280 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.selector);
7281 }
7283 {
7284 return iterator.Select(selector);
7285 }
7287 {
7288 if (source is TSource[] array)
7289 {
7290 if (array.Length != 0)
7291 {
7293 }
7294 return Empty<TResult>();
7295 }
7297 {
7299 }
7301 }
7303 {
7304 IEnumerable<TResult> result = null;
7306 if (result != null)
7307 {
7308 return result;
7309 }
7310 }
7312 }
static void CreateSelectIPartitionIterator< TResult, TSource >(Func< TSource, TResult > selector, IPartition< TSource > partition, [NotNull] ref IEnumerable< TResult > result)
static IEnumerable< TResult > Empty< TResult >()

References System.array, System.Linq.Enumerable.CreateSelectIPartitionIterator< TResult, TSource >(), System.Linq.Enumerable.Empty< TResult >(), System.Linq.selector, System.Linq.source, and System.Linq.ThrowHelper.ThrowArgumentNullException().