Skip to content

Commit

Permalink
Rollback one of the TryAdd introduced through #2299, VS Package is st…
Browse files Browse the repository at this point in the history
…ill on net472 (#2315)
  • Loading branch information
Eideren authored Jun 7, 2024
1 parent 988cb09 commit b67eab4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sources/core/Stride.Core.Yaml/Schemas/SchemaBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,9 @@ protected void RegisterDefaultTagMapping(string tag, Type type, bool isDefault)
if (type == null)
throw new ArgumentNullException("type");

mapTypeToShortTag.TryAdd(type, tag);
if (!mapTypeToShortTag.ContainsKey(type))
mapTypeToShortTag.Add(type, tag);

if (isDefault)
{
mapShortTagToType[tag] = type;
Expand Down

0 comments on commit b67eab4

Please sign in to comment.