|
|
|
|
@ -3,6 +3,7 @@ using System;
@@ -3,6 +3,7 @@ using System;
|
|
|
|
|
using System.Collections; |
|
|
|
|
using System.Collections.Generic; |
|
|
|
|
using System.Diagnostics.CodeAnalysis; |
|
|
|
|
using System.Linq; |
|
|
|
|
|
|
|
|
|
namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty |
|
|
|
|
{ |
|
|
|
|
@ -207,4 +208,21 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty
@@ -207,4 +208,21 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty
|
|
|
|
|
return default; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public class T09_Linq |
|
|
|
|
{ |
|
|
|
|
public IEnumerable<string> QueryWithNonNullableReferenceTypes(IEnumerable<string> strings) |
|
|
|
|
{ |
|
|
|
|
return from s in strings |
|
|
|
|
where s.Length > 0 |
|
|
|
|
select s.ToUpper(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public IEnumerable<string> QueryWithNullableReferenceTypes(IEnumerable<string?> strings) |
|
|
|
|
{ |
|
|
|
|
return from s in strings |
|
|
|
|
where s != null |
|
|
|
|
select s.ToUpper(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|