You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, DBNull.Value is serialized to empty object string({}).
There is dedicated code path for DBNull.Value on FullObjectGraphTraversalStrategy.
But it seems not be used. (Because value.IsDbNull() always returns false, And ther is no break statement)
Currently,
DBNull.Value
is serialized to empty object string({}
).There is dedicated code path for
DBNull.Value
onFullObjectGraphTraversalStrategy
.But it seems not be used. (Because
value.IsDbNull()
always returnsfalse
, And ther is nobreak
statement)YamlDotNet/YamlDotNet/Serialization/ObjectGraphTraversalStrategies/FullObjectGraphTraversalStrategy.cs
Lines 141 to 144 in 7bed5cf
Is this current behavior is working as expected?
Note
Returning
empty object
is same behavior asSystem.Text,Json
. (https://github.com/dotnet/runtime/issues/418
)The text was updated successfully, but these errors were encountered: