Beispiel #1
0
 public static VerificationDrawer CreateVerificationDrawer(object target, VerificationCompareAttribute attr)
 {
     if (attrDrawerDic.TryGetValue(attr.GetType(), out Type drawerType))
     {
         return((VerificationDrawer)Activator.CreateInstance(drawerType, target, attr));
     }
     return(null);
 }
Beispiel #2
0
 protected VerificationDrawer(object target, VerificationCompareAttribute attr) : base(target, attr)
 {
 }
Beispiel #3
0
 public NotNullDrawer(object target, VerificationCompareAttribute attr) : base(target, attr)
 {
 }