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