Skip to content

Commit

Permalink
Document condition
Browse files Browse the repository at this point in the history
  • Loading branch information
bash committed Apr 11, 2024
1 parent e9d3586 commit c0e54ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Funcky/Extensions/QueryableExtensions/ElementAtOrNone.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ namespace Funcky.Extensions;
public static partial class QueryableExtensions
{
#if NET7_0
// Starting with .NET 8.0 the Select, Filter, ... methods are no longer marked with [RequiresDynamicCode]
// so we only need this attribute for .NET 7.0.
private const string InMemoryQueryableExtensionMethodsRequiresDynamicCode = "Enumerating collections as IQueryable can require creating new generic types or methods, which requires creating code at runtime. This may not work when AOT compiling.";
#endif

Expand Down

0 comments on commit c0e54ca

Please sign in to comment.