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