Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = true, AllowMultiple = true)]
- public sealed class ExtractNameAttribute : Attribute
- { }
- static bool IsMarked(Type type)
- {
- return type.GetCustomAttributes(typeof(ExtractNameAttribute), true).Any();
- }
- [ExtractName]
- public class Container
- {
- public List<string> Addresses { get; set; }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement