diff --git a/OpenScreen.Core/Mjpeg/MjpegWriter.cs b/OpenScreen.Core/Mjpeg/MjpegWriter.cs index d5c4b19..6dff75b 100644 --- a/OpenScreen.Core/Mjpeg/MjpegWriter.cs +++ b/OpenScreen.Core/Mjpeg/MjpegWriter.cs @@ -25,7 +25,7 @@ public MjpegWriter(Stream stream) /// public void WriteHeaders() { - var headers = Encoding.ASCII.GetBytes(MjpegConstants.ResponseHeaders); + byte[] headers = Encoding.ASCII.GetBytes(MjpegConstants.ResponseHeaders); const int offset = 0; _stream.Write(headers, offset, headers.Length); @@ -39,7 +39,7 @@ public void WriteHeaders() /// Stream of images. public void WriteImage(MemoryStream imageStream) { - var headers = Encoding.ASCII.GetBytes( + byte[] headers = Encoding.ASCII.GetBytes( MjpegConstants.GetImageInfoHeaders(imageStream.Length)); const int offset = 0; @@ -47,7 +47,7 @@ public void WriteImage(MemoryStream imageStream) imageStream.WriteTo(_stream); - var endOfResponse = Encoding.ASCII.GetBytes(MjpegConstants.NewLine); + byte[] endOfResponse = Encoding.ASCII.GetBytes(MjpegConstants.NewLine); _stream.Write(endOfResponse, offset, endOfResponse.Length); diff --git a/OpenScreen.Core/Screenshot/Screenshot.cs b/OpenScreen.Core/Screenshot/Screenshot.cs index e63d7c9..52b5b71 100644 --- a/OpenScreen.Core/Screenshot/Screenshot.cs +++ b/OpenScreen.Core/Screenshot/Screenshot.cs @@ -28,7 +28,7 @@ public static IEnumerable TakeSeriesOfScreenshots(Resolution.Resolutions var rawImage = new Bitmap(screenSize.Width, screenSize.Height); var rawGraphics = Graphics.FromImage(rawImage); - var isNeedToScale = (screenSize != requiredSize); + bool isNeedToScale = screenSize != requiredSize; var image = rawImage; var graphics = rawGraphics; @@ -58,7 +58,6 @@ public static IEnumerable TakeSeriesOfScreenshots(Resolution.Resolutions yield return image; } - // ReSharper disable once IteratorNeverReturns } /// diff --git a/OpenScreen.Core/Screenshot/WinFeatures/MouseCursor.cs b/OpenScreen.Core/Screenshot/WinFeatures/MouseCursor.cs index b5e53e7..ca75101 100644 --- a/OpenScreen.Core/Screenshot/WinFeatures/MouseCursor.cs +++ b/OpenScreen.Core/Screenshot/WinFeatures/MouseCursor.cs @@ -6,7 +6,7 @@ namespace OpenScreen.Core.Screenshot.WinFeatures /// /// Class for working with the mouse cursor. /// - /// Details of the CURSORINFO structure: + /// Details of the CursorInfo structure: /// https://docs.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-cursorinfo /// /// Details of the GetCursorInfo method: diff --git a/OpenScreen.Core/Screenshot/WinFeatures/RunningApplications.cs b/OpenScreen.Core/Screenshot/WinFeatures/RunningApplications.cs index 782bf64..2c357af 100644 --- a/OpenScreen.Core/Screenshot/WinFeatures/RunningApplications.cs +++ b/OpenScreen.Core/Screenshot/WinFeatures/RunningApplications.cs @@ -5,6 +5,9 @@ namespace OpenScreen.Core.Screenshot.WinFeatures { + /// + /// Provides information about running applications that you can stream. + /// public static class RunningApplications { private const int GwlStyle = -16; // Sets a new window style.