Skip to content

Instantly share code, notes, and snippets.

@rofr
Last active August 29, 2015 14:27
Show Gist options
  • Save rofr/d348728773cd608257e7 to your computer and use it in GitHub Desktop.
Save rofr/d348728773cd608257e7 to your computer and use it in GitHub Desktop.
Smurf naming?
[Isolation(Isolation = Isolation.InputOutput)]
public class MyCommand : Command<MyModel, MyResult>
{
}
[Flags]
public enum Isolation
{
Unknown = 0,
Input = 1,
Output = 2,
InputOutput = 3
}
[AttributeUsage(AttributeTargets.Class)]
public class IsolationAttribute : Attribute
{
public Isolation Isolation{ get; set; }
public IsolationAttribute(Isolation isolation)
{
Isolation = isolation;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment