예제 #1
0
 TemplateProperty ConstructProperty(PropertyToken propertyToken, object value)
 {
     return(new TemplateProperty(
                propertyToken.PropertyName,
                _valueConverter.CreatePropertyValue(value, propertyToken.Destructuring)));
 }
예제 #2
0
 public TemplatePropertyValue CreatePropertyValue(object value, Destructuring destructuring)
 {
     return(DefaultIfMaximumDepth() ??
            _propertyValueConverter.CreatePropertyValue(value, destructuring, _currentDepth + 1));
 }