public Result TryResolve(IResolutionContext context, IDescribeMappableProperty destinationProperty)
 {
     var destValue = context.GetDestinationPropertyValue(destinationProperty.Name);
     if (destinationProperty.PropertyType.IsDefaultOrEmpty(destValue) == false)
         return Result.Unresolved;
     return inner.TryResolve(context, destinationProperty);
 }
Exemple #2
0
        public Result TryResolve(IResolutionContext context, IDescribeMappableProperty destinationProperty)
        {
            var destValue = context.GetDestinationPropertyValue(destinationProperty.Name);

            if (destinationProperty.PropertyType.IsDefaultOrEmpty(destValue) == false)
            {
                return(Result.Unresolved);
            }
            return(inner.TryResolve(context, destinationProperty));
        }