Skip to content

Commit afe8cd3

Browse files
committed
bug fixed
1 parent 89586ac commit afe8cd3

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@ ExportedObj/
3636
Icon?
3737
ehthumbs.db
3838
Thumbs.db
39+
*.nupkg

projects/CatLib.API/Config/Internal/IConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public interface IConfig
6464
/// <param name="type">配置最终转换到的类型</param>
6565
/// <param name="def">当找不到配置时的默认值</param>
6666
/// <returns>配置的值,如果找不到则返回默认值</returns>
67-
object Get(string name, Type type, object def = null);
67+
object Get(string name, Type type, object def);
6868

6969
/// <summary>
7070
/// 根据配置名获取配置

projects/CatLib/Config/Config.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public void Set(string name, object value)
134134
/// <param name="type">配置最终转换到的类型</param>
135135
/// <param name="def">当找不到配置时的默认值</param>
136136
/// <returns>配置的值,如果找不到则返回默认值</returns>
137-
public object Get(string name, Type type, object def = null)
137+
public object Get(string name, Type type, object def)
138138
{
139139
Guard.Requires<AssertException>(locator != null);
140140
Guard.Requires<AssertException>(converters != null);

0 commit comments

Comments
 (0)