Skip to content

Commit

Permalink
Master (#14)
Browse files Browse the repository at this point in the history
We should allow non-generic Serialize/Deserialize
  • Loading branch information
DarekDan authored Nov 24, 2021
1 parent 3ffb2e7 commit cbc3131
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Salar.Bois/BoisSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public void Serialize<T>(T obj, Stream output)
/// <param name="obj">The object to be serialized.</param>
/// <param name="type">The object type.</param>
/// <param name="output">The output of the serialization in binary.</param>
internal void Serialize(object obj, Type type, Stream output)
public void Serialize(object obj, Type type, Stream output)
{
if (obj == null)
throw new ArgumentNullException(nameof(obj), "Object cannot be null.");
Expand Down Expand Up @@ -160,7 +160,7 @@ public T Deserialize<T>(Stream objectData)
/// <param name="objectData">The binary data.</param>
/// <param name="type">The object type.</param>
/// <returns>New instance of the deserialized data.</returns>
internal object Deserialize(Stream objectData, Type type)
public object Deserialize(Stream objectData, Type type)
{
var reader = new BinaryReader(objectData, Encoding);

Expand Down

0 comments on commit cbc3131

Please sign in to comment.