Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public enum SomeEnum: long
- {
- [SomeAttribute<MyClass1>]
- Sms = 1,
- [SomeAttribute<MyClass2>]
- Email = 2
- }
- public enum SomeEnum: long
- {
- [SomeAttribute(typeof(MyClass1))]
- Sms = 1,
- [SomeAttribute(typeof(MyClass2))]
- Email = 2
- }
- [AttributeUsage(AttributeTargets.All)]
- class SomeAttribute<T> : Attribute where T: ICustomInterface
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement