/// <summary>
 /// Helper method to deserialize <see cref="ImageSource" /> objects.
 /// </summary>
 public static ImageSource DelegateToImageSource(object imageSource, ImageSource defaultValueIfNull = default)
 {
     return(AttributeValueHolderFactory.ToValue <ImageSource>(imageSource, defaultValueIfNull));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Helper method to deserialize objects.
 /// </summary>
 public static T DelegateToObject <T>(object value, T defaultValueIfNull = default)
 {
     return(AttributeValueHolderFactory.ToValue <T>(value, defaultValueIfNull));
 }