SHARE
TWEET

Untitled

a guest Sep 19th, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = true, AllowMultiple = true)]
  2.     public sealed class ExtractNameAttribute : Attribute
  3.     { }
  4.    
  5.         static bool IsMarked(Type type)
  6.         {
  7.             return type.GetCustomAttributes(typeof(ExtractNameAttribute), true).Any();
  8.         }
  9.        
  10.        
  11.     [ExtractName]
  12.     public class Container
  13.     {
  14.         public List<string> Addresses { get; set; }
  15.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top