Skip to content

Commit

Permalink
Merge pull request #3 from danmoseley/obs
Browse files Browse the repository at this point in the history
Obsolete BinaryFormatter related methods
  • Loading branch information
danmoseley committed Apr 12, 2023
2 parents fe9fa08 + 2dce443 commit ecc4e18
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ public FormatterNotRegisteredException(string message)
{
}

[Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.")]
protected FormatterNotRegisteredException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public TinyJsonException(string message)
{
}

[Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.")]
protected TinyJsonException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public MessagePackSerializationException(string message, Exception inner)
/// </summary>
/// <param name="info">Serialization info.</param>
/// <param name="context">Serialization context.</param>
[Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.")]
protected MessagePackSerializationException(
System.Runtime.Serialization.SerializationInfo info,
System.Runtime.Serialization.StreamingContext context)
Expand Down

0 comments on commit ecc4e18

Please sign in to comment.