2021-03-22 21:25:14 -07:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
2023-03-07 16:59:14 -05:00
|
|
|
namespace BinaryObjectScanner.Matching
|
2021-03-22 21:25:14 -07:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Wrapper for a single set of matching criteria
|
|
|
|
|
/// </summary>
|
2021-08-25 19:37:32 -07:00
|
|
|
public abstract class MatchSet<T, U> where T : IMatch<U>
|
2021-03-22 21:25:14 -07:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Set of all matchers
|
|
|
|
|
/// </summary>
|
2023-09-16 21:25:50 -04:00
|
|
|
#if NET48
|
2021-03-22 21:25:14 -07:00
|
|
|
public IEnumerable<T> Matchers { get; set; }
|
2023-09-16 21:25:50 -04:00
|
|
|
#else
|
|
|
|
|
public IEnumerable<T>? Matchers { get; set; }
|
|
|
|
|
#endif
|
2021-03-22 21:25:14 -07:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Name of the protection to show
|
|
|
|
|
/// </summary>
|
2023-09-16 21:25:50 -04:00
|
|
|
#if NET48
|
2021-03-22 21:25:14 -07:00
|
|
|
public string ProtectionName { get; set; }
|
2023-09-16 21:25:50 -04:00
|
|
|
#else
|
|
|
|
|
public string? ProtectionName { get; set; }
|
|
|
|
|
#endif
|
2021-03-22 21:25:14 -07:00
|
|
|
}
|
|
|
|
|
}
|