There was an error while loading. Please reload this page.
1 parent afe8cd3 commit f5af338Copy full SHA for f5af338
projects/CatLib.API/Config/Internal/ConfigExtend.cs
@@ -42,7 +42,7 @@ public static class ConfigExtend
42
/// <param name="type">配置的类型</param>
43
/// <param name="def">默认值</param>
44
/// <returns></returns>
45
- public static object SafeGet(this IConfig config, string name, Type type, object def = null)
+ public static object SafeGet(this IConfig config, string name, Type type, object def)
46
{
47
return config == null ? def : config.Get(name, type, def);
48
}
0 commit comments