Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. public enum SomeEnum: long
  2. {
  3. [SomeAttribute<MyClass1>]
  4. Sms = 1,
  5. [SomeAttribute<MyClass2>]
  6. Email = 2
  7. }
  8.  
  9. public enum SomeEnum: long
  10. {
  11. [SomeAttribute(typeof(MyClass1))]
  12. Sms = 1,
  13. [SomeAttribute(typeof(MyClass2))]
  14. Email = 2
  15. }
  16.  
  17. [AttributeUsage(AttributeTargets.All)]
  18. class SomeAttribute<T> : Attribute where T: ICustomInterface
  19. {
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement