Ejemplo n.º 1
0
        internal IntelligentDesign AddMutation(IntelligentMutation mutation, Expression expression)
        {
            var memberExpression = expression as MemberExpression;
            if (memberExpression == null)
                return this;

            return AddMutation(mutation, memberExpression.Member.Name);
        }
Ejemplo n.º 2
0
        internal IntelligentDesign AddMutation(IntelligentMutation mutation, string propertyName)
        {
            if (_mutations.ContainsKey(propertyName))
                _mutations[propertyName] = mutation;
            else
                _mutations.Add(propertyName, mutation);

            return this;
        }