I using Protobuf in Dotner Core 3.1 and install this Package on my project, but when i write these line of codes for serializing requested object :
public static byte[] ProtoSerialize<T>(T record) where T : class
{
try
{
using (var stream = new MemoryStream())
{
Serializer.Serialize(stream, record);
return stream.ToArray();
}
}
catch
{
throw;
}
}
Visual studio can not find related name space and got error that can not find Serializer,
The name 'Serializer' does not exist in the current context
I test it on .Net and install related package that works but in .Net Core i got error.
What is related namespece ? what is the problem?