private void DoMap(IPropertyMapping mapping, object target, object source) { if (mapping.CanRead(source) & mapping.CanWrite(target)) { try { mapping.MapValue(source, target); } catch (Exception ex) { if (Map.ThrowMappingExceptions) { throw new MappingException(ex, "MappingStrategy.DoMap failed, target: {0}, error: {1}", mapping.TargetName, ex.Message); } } } }