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