From 47e80bfebc2624fef53c98200249a89b76d0de26 Mon Sep 17 00:00:00 2001 From: Jack <3486688394@qq.com> Date: Tue, 21 Jan 2025 19:15:35 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=B8=85=E7=90=86=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- JackCraft.Config/Config.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/JackCraft.Config/Config.cs b/JackCraft.Config/Config.cs index 05a7bc3..6844c71 100644 --- a/JackCraft.Config/Config.cs +++ b/JackCraft.Config/Config.cs @@ -39,8 +39,11 @@ public class Config } } - public T? Get(string key) => Get(key, default); - + public T? Get(string key) + { + return Get(key, default); + } + public T? Get(string key, T? defaultValue) { LoadConfigData();