Advertisement
Guest User

Attribute

a guest
Feb 25th, 2020
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.32 KB | None | 0 0
  1. using System;
  2.  
  3.  
  4. namespace OOP_UI
  5. {
  6.     [AttributeUsage(AttributeTargets.Class | AttributeTargets.Field , AllowMultiple = true)]
  7.     public class InfoAttribute : System.Attribute
  8.     {
  9.         public string Name;
  10.  
  11.         public InfoAttribute(string name)
  12.         {
  13.             Name = name;
  14.         }
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement