We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3581676 commit 0768f9cCopy full SHA for 0768f9c
EntityFrameworkExtras.Shared/StoredProcedureParserHelper.cs
@@ -48,13 +48,13 @@ public Type GetCollectionType(Type type)
48
{
49
if (type.IsInterface && type.GetGenericTypeDefinition() == typeof(IEnumerable<>))
50
51
- returnType = type.GetGenericArguments()?.FirstOrDefault();
+ returnType = type.GetGenericArguments().FirstOrDefault();
52
}
53
else
54
55
- returnType = type.GetInterfaces()?
56
- .Where(x => x.IsGenericType)?
57
- .FirstOrDefault(x => x.GetGenericTypeDefinition() == typeof(IEnumerable<>))?.GetGenericArguments()?.FirstOrDefault();
+ returnType = type.GetInterfaces()
+ .Where(x => x.IsGenericType)
+ .FirstOrDefault(x => x.GetGenericTypeDefinition() == typeof(IEnumerable<>))?.GetGenericArguments().FirstOrDefault();
58
59
60
0 commit comments