mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Support ancient .NET in Filter
This commit is contained in:
@@ -12,7 +12,11 @@ namespace SabreTools.Filter
|
||||
/// <summary>
|
||||
/// Set of filters to be run against an object
|
||||
/// </summary>
|
||||
#if NETFRAMEWORK || NETCOREAPP3_1
|
||||
public FilterObject[] Filters { get; private set; }
|
||||
#else
|
||||
public FilterObject[] Filters { get; init; }
|
||||
#endif
|
||||
|
||||
public FilterRunner(FilterObject[]? filters)
|
||||
{
|
||||
@@ -35,7 +39,7 @@ namespace SabreTools.Filter
|
||||
|
||||
this.Filters = filters.ToArray();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Run filtering on a DictionaryBase item
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user