Awesome!

On Mar 19, 3:45 pm, Marc Gravell <[email protected]> wrote:
> With protobuf-net? Sure; use Serializer.NonGeneric.Serialize(ms, obj);
>
> Marc
>
> On 19 March 2010 22:06, Rich76 <[email protected]> wrote:
>
>
>
> > Is there any way to do this?
>
> > public static byte[] Serialize(Object obj)
> >  {
> >    using (MemoryStream ms = new MemoryStream())
> >    {
> >        Serializer.Serialize<Object>(ms, obj);
> >        return ms.ToArray();
> >    }
> > }
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Protocol Buffers" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<protobuf%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/protobuf?hl=en.
>
> --
> Regards,
>
> Marc

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to