예제 #1
0
 public PropertyObjective(TypeModel typeModel, PropertyInfo property)
 {
     TypeModel = typeModel;
     Property  = property;
 }
예제 #2
0
 public MethodConstraint(TypeModel typeModel, MethodInfo method)
 {
     TypeModel = typeModel;
     Method    = method;
 }
예제 #3
0
 public double Evaluate(Array arguments)
 {
     return((double)Property.GetValue(TypeModel.Activate(arguments)));
 }
예제 #4
0
 public bool Test(Array arguments) => (bool)Method.Invoke(TypeModel.Activate(arguments), null);