Advertisement
Guest User

Untitled

a guest
Jun 24th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.65 KB | None | 0 0
  1.    public class RegisterToDiAttribute : Attribute
  2.     {
  3.         public Type[] InterfaceType { get; }
  4.  
  5.         public RegisterToDiAttribute(params Type[] interfaceType)
  6.         {
  7.             InterfaceType = interfaceType;
  8.         }
  9.  
  10.         public RegisterToDiAttribute()
  11.         {
  12.            
  13.         }
  14.     }
  15.    
  16.     public class RegisterSingletonToDiAttribute : Attribute
  17.     {
  18.         public Type InterfaceType { get; }
  19.  
  20.         public RegisterSingletonToDiAttribute(Type interfaceType)
  21.         {
  22.             InterfaceType = interfaceType;
  23.         }
  24.  
  25.         public RegisterSingletonToDiAttribute()
  26.         {
  27.            
  28.         }
  29.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement