From 9b9264a6ccb2d8ffa8df62c013ffdf82c779c9d3 Mon Sep 17 00:00:00 2001 From: ninemine <1371605831@qq.com> Date: Wed, 8 Oct 2025 21:43:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86ConventValue?= =?UTF-8?q?=E4=B8=ADParse=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Convention/[Runtime]/Config.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Convention/[Runtime]/Config.cs b/Convention/[Runtime]/Config.cs index ce5e496..90643e7 100644 --- a/Convention/[Runtime]/Config.cs +++ b/Convention/[Runtime]/Config.cs @@ -438,7 +438,7 @@ namespace Convention public static _T convert_xvalue<_T>([In] string str) { Type type = typeof(_T); - var parse_method = type.GetMethod("Parse"); + var parse_method = type.GetMethod(nameof(int.Parse), BindingFlags.Static | BindingFlags.Public, null, new Type[] { typeof(string) }, null); if (parse_method != null && (parse_method.ReturnType.IsSubclassOf(type) || parse_method.ReturnType == type) && parse_method.GetParameters().Length == 1 &&