Merge branch 'main' of https://github.com/microsoft/TemplateStudio
This commit is contained in:
Коммит
3f7da10939
|
@ -49,7 +49,7 @@ public class PageService : IPageService
|
|||
}
|
||||
|
||||
var type = typeof(V);
|
||||
if (_pages.Any(p => p.Value == type))
|
||||
if (_pages.ContainsValue(type))
|
||||
{
|
||||
throw new ArgumentException($"This type is already configured with key {_pages.First(p => p.Value == type).Key}");
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ public class PageService : IPageService
|
|||
}
|
||||
|
||||
var type = typeof(V);
|
||||
if (_pages.Any(p => p.Value == type))
|
||||
if (_pages.ContainsValue(type))
|
||||
{
|
||||
throw new ArgumentException($"This type is already configured with key {_pages.First(p => p.Value == type).Key}");
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче