This commit is contained in:
BlubbFish 2020-06-15 16:50:14 +02:00
parent d1542d5770
commit 97ca122560

View File

@ -75,7 +75,7 @@ namespace Swan.Formatters {
private Object GetSourcePropertyValue(IDictionary<String, Object> sourceProperties, MemberInfo targetProperty) {
String targetPropertyName = MemberInfoNameCache.GetOrAdd(targetProperty, x => AttributeCache.DefaultCache.Value.RetrieveOne<JsonPropertyAttribute>(x)?.PropertyName ?? x.Name.GetNameWithCase(this._jsonSerializerCase));
return sourceProperties.GetValueOrDefault(targetPropertyName);
return sourceProperties!.GetValueOrDefault(targetPropertyName)!;
}
private Boolean TrySetInstance(Object? targetInstance, Object source, ref Object? target) {