SharpSerializer Is failing when object has non existing properties
dmitry-web opened this issue · comments
dmitry-web commented
SharpSerializer Is failing when object has non existing properties.
Just need to check if Dictionary has key line code here
Igor commented
How fix it?
dmitry-web commented
How fix it?
Try to override SharpSerializer with your classes and check if key exists
return _objectCache.Any(x => x.Key == referenceTarget.Reference.Id) ? _objectCache[referenceTarget.Reference.Id] : null;