Skip to content

Commit

Permalink
Fix type metadata cache
Browse files Browse the repository at this point in the history
  • Loading branch information
exyi committed Jan 18, 2023
1 parent 614e62c commit 35096fd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private JObject GetEnumTypeMetadataCopy(Type type)
private ObjectMetadataWithDependencies GetObjectTypeMetadataCopy(ViewModelSerializationMap map)
{
var key = new ViewModelSerializationMapWithCulture(map, CultureInfo.CurrentUICulture.Name);
var obj = cachedObjectMetadata.GetOrAdd(key, BuildObjectTypeMetadata(map));
var obj = cachedObjectMetadata.GetOrAdd(key, _ => BuildObjectTypeMetadata(map));
return new ObjectMetadataWithDependencies((JObject)obj.Metadata.DeepClone(), obj.DependentObjectTypes, obj.DependentEnumTypes);
}

Expand Down

0 comments on commit 35096fd

Please sign in to comment.