/// <summary> /// Helper method to serialize <see cref="ImageSource" /> objects. /// </summary> public static AttributeValueHolder ImageSourceToDelegate(ImageSource imageSource) { if (imageSource is null) { throw new ArgumentNullException(nameof(imageSource)); } return(AttributeValueHolderFactory.FromObject(imageSource)); }
/// <summary> /// Helper method to serialize objects. /// </summary> public static AttributeValueHolder ObjectToDelegate(object value) { if (value is null) { throw new ArgumentNullException(nameof(value)); } return(AttributeValueHolderFactory.FromObject(value)); }