feat: 添加 Get 方法的重载版本
This commit is contained in:
@@ -39,6 +39,8 @@ public class Config
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public T? Get<T>(string key) => Get<T>(key, default);
|
||||||
|
|
||||||
public T? Get<T>(string key, T? defaultValue)
|
public T? Get<T>(string key, T? defaultValue)
|
||||||
{
|
{
|
||||||
LoadConfigData();
|
LoadConfigData();
|
||||||
|
Reference in New Issue
Block a user