Definition at line 159 of file EnumerableRewriter.cs.
160 {
162 {
164 {
165 {
168 },
169 {
172 }
173 };
174 }
176 {
179 {
182 {
184 }
186 {
188 }
190 {
192 }
194 {
196 }
197 }
199 {
201 }
203 }
205 [
UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2070:UnrecognizedReflectionPattern", Justification =
"The enumerable interface type (IOrderedQueryable<>, IOrderedEnumerable<>, IQueryable<> and IEnumerable<>) is kept since it's directly referenced hereand so it will also be preserved in all places where it's implemented.The GetInterfaces may return less after trimming but it will includethe enumerable interface type if it was there before trimming, which is enough for thismethod to work.")]
207 {
210 where i.IsGenericType && i.GenericTypeArguments.Length == 1
211 select new
212 {
214 GenType =
i.GetGenericTypeDefinition()
215 }).ToArray();
218 select
i.Info.GenericTypeArguments[0]).
Distinct().SingleOrDefault();
220 {
222 }
225 select
i.Info.GenericTypeArguments[0]).
Distinct().Single();
227 }
228 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
void Add(TKey key, TValue value)
Dictionary< Type, Type > _equivalentTypeCache
static Type GetPublicType(Type t)
References System.Linq.EnumerableRewriter._equivalentTypeCache, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Linq.EnumerableRewriter.GetPublicType(), System.Linq.source, System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue(), System.type, and System.value.
Referenced by System.Linq.EnumerableRewriter.VisitBlock(), System.Linq.EnumerableRewriter.VisitConditional(), System.Linq.EnumerableRewriter.VisitGoto(), and System.Linq.EnumerableRewriter.VisitLabelTarget().