[Solved] New class object error : Object reference not set to an instance of an object [duplicate]

This is your problem: _cache.TryGetValue(“CountsStats”, out countStats) out will change the object that countStats is pointing to. If it’s found in the cache, then it will be the cached object. Great! If it isn’t, then it will be null. You need to create a new instance in this case. You should change your code to … Read more

[Solved] Blazor WebAPI to Client deserialization exception (PocoJsonSerializerStrategy)

Don’t know if it is that, but my experience with Blazor 0.7, still working on application for master thesis, is that you can’t neither send or receive nested object at once. I have Person in my database and that Person has some stores, so entity maps it in object similar to this one Person{ id:int, … Read more