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

◆ GetOneWithPossibleDefault< TSource >()

static TSource System.Linq.ParallelEnumerable.GetOneWithPossibleDefault< TSource > ( QueryOperator< TSource > queryOp,
bool throwIfTwo,
bool defaultIfEmpty )
inlinestaticprivate

Definition at line 1935 of file ParallelEnumerable.cs.

1936 {
1938 {
1939 if (enumerator.MoveNext())
1940 {
1941 TSource current = enumerator.Current;
1942 if (throwIfTwo && enumerator.MoveNext())
1943 {
1945 }
1946 return current;
1947 }
1948 }
1949 if (defaultIfEmpty)
1950 {
1951 return default(TSource);
1952 }
1954 }
static string NoElements
Definition SR.cs:16
static string MoreThanOneMatch
Definition SR.cs:14
Definition SR.cs:7

References System.Collections.Generic.Dictionary< TKey, TValue >.GetEnumerator(), System.SR.MoreThanOneMatch, and System.SR.NoElements.