chore: 统一代码风格
This commit is contained in:
@@ -19,8 +19,8 @@ public class ViewLocator : IDataTemplate
|
||||
if (param is null)
|
||||
return null;
|
||||
|
||||
var name = param.GetType().FullName!.Replace("ViewModel", "View", StringComparison.Ordinal);
|
||||
var type = Type.GetType(name);
|
||||
string name = param.GetType().FullName!.Replace("ViewModel", "View", StringComparison.Ordinal);
|
||||
Type? type = Type.GetType(name);
|
||||
|
||||
if (type != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user