Use new Enum.TryParse(ReadOnlySpan<char>) overload

This commit is contained in:
Bond_009
2021-05-23 00:20:19 +02:00
parent 13fbfe6091
commit 4d1d9f23d5
5 changed files with 28 additions and 26 deletions

View File

@@ -8,11 +8,16 @@ namespace MediaBrowser.Controller.Drawing
{
public class ImageStream : IDisposable
{
public ImageStream(Stream stream)
{
Stream = stream;
}
/// <summary>
/// Gets or sets the stream.
/// Gets the stream.
/// </summary>
/// <value>The stream.</value>
public Stream? Stream { get; set; }
public Stream Stream { get; }
/// <summary>
/// Gets or sets the format.