示例#1
0
        public IResolutionContext CreateNestedContext(IDescribeMappableProperty destinationProperty, IResolutionContext parentContext)
        {
            var dest = invoke.GetValue(destinationProperty.Name, parentContext.Destination) ?? activate.CreateInstance(destinationProperty.PropertyType);

            return(CreateContext(parentContext.Source, dest));
        }
示例#2
0
 public object GetSourcePropertyValue(string propertyName)
 {
     return(invoke.GetValue(propertyName, Source));
 }