Skip to content

Instantly share code, notes, and snippets.

@bruno-garcia
Last active December 3, 2017 23:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bruno-garcia/f43b2feebfa1a3c4b214e24ae0f7b56a to your computer and use it in GitHub Desktop.
Save bruno-garcia/f43b2feebfa1a3c4b214e24ae0f7b56a to your computer and use it in GitHub Desktop.
ISerializer with ReadOnlySpan<T>
public interface ISerializer
{
ReadOnlySpan<byte> Serialize<T>(T @object);
object Deserialize(Type type, ReadOnlySpan<byte> bytes);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment