internal IntelligentDesign AddMutation(IntelligentMutation mutation, Expression expression) { var memberExpression = expression as MemberExpression; if (memberExpression == null) return this; return AddMutation(mutation, memberExpression.Member.Name); }
internal IntelligentDesign AddMutation(IntelligentMutation mutation, string propertyName) { if (_mutations.ContainsKey(propertyName)) _mutations[propertyName] = mutation; else _mutations.Add(propertyName, mutation); return this; }