2019-06-16 01:55:35 +00:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
namespace Encompass
|
|
|
|
{
|
2019-07-18 21:02:57 +00:00
|
|
|
[AttributeUsage(AttributeTargets.Class)]
|
|
|
|
public class Reads : Attribute
|
2019-06-16 01:55:35 +00:00
|
|
|
{
|
2020-03-20 07:09:57 +00:00
|
|
|
public readonly HashSet<Type> ReadTypes = new HashSet<Type>();
|
2019-06-16 01:55:35 +00:00
|
|
|
|
2019-07-16 18:17:07 +00:00
|
|
|
public Reads(params Type[] readTypes)
|
2019-06-16 01:55:35 +00:00
|
|
|
{
|
2019-07-16 18:17:07 +00:00
|
|
|
foreach (var readType in readTypes)
|
|
|
|
{
|
2020-03-20 22:45:58 +00:00
|
|
|
ReadTypes.Add(readType);
|
2019-07-18 21:02:57 +00:00
|
|
|
}
|
2019-06-16 01:55:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|