зеркало из https://github.com/dotnet/razor.git
Update src/Shared/Microsoft.AspNetCore.Razor.Serialization.Json/ObjectReaders_ProjectSystem.cs
Co-authored-by: Fred Silberberg <fred@silberberg.xyz>
This commit is contained in:
Родитель
4bd1b96d22
Коммит
aa25541c72
|
@ -36,13 +36,12 @@ internal static partial class ObjectReaders
|
|||
|
||||
public static ProjectWorkspaceState ReadProjectWorkspaceStateFromProperties(JsonDataReader reader)
|
||||
{
|
||||
var tagHelpers = reader.ReadImmutableArrayOrEmpty(nameof(ProjectWorkspaceState.TagHelpers),
|
||||
static r => ReadTagHelper(r
|
||||
#if JSONSERIALIZATION_ENABLETAGHELPERCACHE
|
||||
var tagHelpers = reader.ReadImmutableArrayOrEmpty(nameof(ProjectWorkspaceState.TagHelpers),
|
||||
static r => ReadTagHelper(r, useCache: true));
|
||||
#else
|
||||
var tagHelpers = reader.ReadImmutableArrayOrEmpty(nameof(ProjectWorkspaceState.TagHelpers),
|
||||
static r => ReadTagHelper(r));
|
||||
, useCache: true
|
||||
#endif
|
||||
));
|
||||
|
||||
var csharpLanguageVersion = (LanguageVersion)reader.ReadInt32OrZero(nameof(ProjectWorkspaceState.CSharpLanguageVersion));
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче