Properly add value to array

This commit is contained in:
Marc Hernandez 2021-01-16 17:32:40 -08:00 committed by Marc Hernandez
parent c4f1dd5edb
commit add6423b24

View File

@ -5,6 +5,7 @@ using System.Collections.Immutable;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
@ -156,7 +157,7 @@ static public class refl
var immList = list.ToImmutableList();
s_fieldCache = s_fieldCache.Add( t, immList );
Interlocked.Exchange( ref s_fieldCache, s_fieldCache.Add( t, immList ) );
return immList;
}