From 364c415d2631e105ca97ae76f266c00ba3e2a292 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Sat, 12 Jul 2025 13:48:20 +0200 Subject: [PATCH] Add option resource string --- ILSpy/Properties/Resources.Designer.cs | 9 +++++++++ ILSpy/Properties/Resources.resx | 3 +++ ILSpy/Properties/Resources.zh-Hans.resx | 3 +++ 3 files changed, 15 insertions(+) diff --git a/ILSpy/Properties/Resources.Designer.cs b/ILSpy/Properties/Resources.Designer.cs index d31af0b12..285319bdd 100644 --- a/ILSpy/Properties/Resources.Designer.cs +++ b/ILSpy/Properties/Resources.Designer.cs @@ -1514,6 +1514,15 @@ namespace ICSharpCode.ILSpy.Properties { } } + /// + /// Looks up a localized string similar to Use new T() instead of Activator.CreateInstance<T>. + /// + public static string DecompilerSettings_UseObjectCreationOfGenericTypeParameter { + get { + return ResourceManager.GetString("DecompilerSettings.UseObjectCreationOfGenericTypeParameter", resourceCulture); + } + } + /// /// Looks up a localized string similar to Use out variable declarations. /// diff --git a/ILSpy/Properties/Resources.resx b/ILSpy/Properties/Resources.resx index 840c92fb1..f53e0ca4f 100644 --- a/ILSpy/Properties/Resources.resx +++ b/ILSpy/Properties/Resources.resx @@ -525,6 +525,9 @@ Are you sure you want to continue? Use non-trailing named arguments + + Use new T() instead of Activator.CreateInstance<T> + Use out variable declarations diff --git a/ILSpy/Properties/Resources.zh-Hans.resx b/ILSpy/Properties/Resources.zh-Hans.resx index 3973a4805..471a79dad 100644 --- a/ILSpy/Properties/Resources.zh-Hans.resx +++ b/ILSpy/Properties/Resources.zh-Hans.resx @@ -492,6 +492,9 @@ 使用非尾随命名参数 + + + 使用 out 变量声明