From 73bda514de6f606ed65cb604c149bdce253f1c4f Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Tue, 17 Jan 2023 01:06:26 +0100 Subject: [PATCH] Replace string literal with nameof() expression --- samples/ComputeSharp.SwapChain.Uwp/Views/MainView.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/ComputeSharp.SwapChain.Uwp/Views/MainView.xaml.cs b/samples/ComputeSharp.SwapChain.Uwp/Views/MainView.xaml.cs index 489cf3ee..0b1cc07d 100644 --- a/samples/ComputeSharp.SwapChain.Uwp/Views/MainView.xaml.cs +++ b/samples/ComputeSharp.SwapChain.Uwp/Views/MainView.xaml.cs @@ -32,7 +32,7 @@ public sealed partial class MainView : UserControl { App.Current.Services.GetRequiredService().Log(Event.OpenShaderSelectionPanel); - _ = this.Root.Resources.Remove("ShaderSelectionPanel"); + _ = this.Root.Resources.Remove(nameof(this.ShaderSelectionPanel)); this.Root.Children.Add(this.ShaderSelectionPanel); }