diff options
| author | Bond_009 <bond.009@outlook.com> | 2021-05-23 00:20:19 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2021-09-24 20:15:46 +0200 |
| commit | 4d1d9f23d5edd248900118963874a7ab83d04aa1 (patch) | |
| tree | 8153d813ed55c38c4cc6cdafdc6564da73d0e8ec /MediaBrowser.Controller | |
| parent | 13fbfe6091e61450aedc07bc78c96bf4c414bc65 (diff) | |
Use new Enum.TryParse(ReadOnlySpan<char>) overload
Diffstat (limited to 'MediaBrowser.Controller')
| -rw-r--r-- | MediaBrowser.Controller/Drawing/ImageStream.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/Drawing/ImageStream.cs b/MediaBrowser.Controller/Drawing/ImageStream.cs index 5d552170f..f4c305799 100644 --- a/MediaBrowser.Controller/Drawing/ImageStream.cs +++ b/MediaBrowser.Controller/Drawing/ImageStream.cs @@ -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. |
