From 42d330e06b2da89ea122462141b6d802e739b070 Mon Sep 17 00:00:00 2001 From: kruplm <73655443+kruplm@users.noreply.github.com> Date: Fri, 30 Jun 2023 15:22:54 +0200 Subject: [PATCH] Use Implicitly Typed Variables --- src/shell/dotnet/Shell/App.xaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shell/dotnet/Shell/App.xaml.cs b/src/shell/dotnet/Shell/App.xaml.cs index 658b22bbd..956df6702 100644 --- a/src/shell/dotnet/Shell/App.xaml.cs +++ b/src/shell/dotnet/Shell/App.xaml.cs @@ -192,8 +192,8 @@ public string ReadPreloadResource(string name) var assembly = Assembly.GetExecutingAssembly(); string resourcePath = $$"""Shell.Preload.{{name}}"""; - using (Stream stream = assembly.GetManifestResourceStream(resourcePath)) - using (StreamReader reader = new StreamReader(stream)) + using (var stream = assembly.GetManifestResourceStream(resourcePath)) + using (var reader = new StreamReader(stream)) { return reader.ReadToEnd(); }