encompass-cs/encompass-cs/Attributes/ReadsImmediate.cs

20 lines
495 B
C#
Raw Normal View History

2019-12-24 03:04:26 +00:00
using System;
using System.Collections.Generic;
namespace Encompass
{
[AttributeUsage(AttributeTargets.Class)]
public class ReadsImmediate : Attribute
{
2020-03-20 07:09:57 +00:00
public readonly HashSet<Type> ReadImmediateTypes = new HashSet<Type>();
2019-12-24 03:04:26 +00:00
public ReadsImmediate(params Type[] readImmediateTypes)
{
foreach (var readImmediateType in readImmediateTypes)
{
2020-03-20 22:45:58 +00:00
ReadImmediateTypes.Add(readImmediateType);
2019-12-24 03:04:26 +00:00
}
}
}
}