refactor LeftMainContent control of demo
This commit is contained in:
1 parent
3a203896a1
commit
13ad023119
17 files changed
+345
-963
No files matched your search
@@ -21,7 +21,7 @@ namespace HandyControl.Tools
|
||||
{
|
||||
var typeStr = typeof(T).FullName;
|
||||
|
||||
if (string.IsNullOrEmpty(typeStr)) return default(T);
|
||||
if (string.IsNullOrEmpty(typeStr)) return default;
|
||||
|
||||
var temp = new T();
|
||||
if (!OpenDic.Keys.Contains(typeStr))
|
||||
@@ -36,7 +36,7 @@ namespace HandyControl.Tools
|
||||
OpenDic[typeStr] = temp;
|
||||
return temp;
|
||||
}
|
||||
return default(T);
|
||||
return default;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user