Example #1
0
 public override object ConvertFromInvariantString(string value) =>
 value != null
                         ? (FileMediaSource)MediaSource.FromFile(value)
                         : throw new InvalidOperationException($"Cannot convert \"{value}\" into {typeof(FileMediaSource)}");