Beispiel #1
0
 public static DataRule Create <T>(string member, MreOperator oper, string target)
 {
     return(new DataRule
     {
         MemberName = member,
         TargetValue = target,
         Operator = oper.ToString(),
         Type = typeof(T).FullName
     });
 }
Beispiel #2
0
 public static DataRule Create(string member, MreOperator oper, object target, Type memberType)
 {
     return(new DataRule
     {
         MemberName = member,
         TargetValue = target,
         Operator = oper.ToString(),
         Type = memberType.FullName
     });
 }
Beispiel #3
0
 public static Rule Create(string member, MreOperator oper, object target)
 {
     return(new Rule {
         MemberName = member, TargetValue = target, Operator = oper.ToString()
     });
 }