public PropertyObjective(TypeModel typeModel, PropertyInfo property) { TypeModel = typeModel; Property = property; }
public MethodConstraint(TypeModel typeModel, MethodInfo method) { TypeModel = typeModel; Method = method; }
public double Evaluate(Array arguments) { return((double)Property.GetValue(TypeModel.Activate(arguments))); }
public bool Test(Array arguments) => (bool)Method.Invoke(TypeModel.Activate(arguments), null);