OK; that helps a bit; now, I've tried that with:
using Google.Protobuf;
using SCL.PC;
using System;
using System.Xml.Serialization;
static class P
{
static void Main()
{
var obj = new ClientIdentifier
{
Context = ClientIdentifier.Types.Context.Cfid,
I did the same but it throwing the error.. I dont know what I am making
mistake here . All my application are 3.5 .net version,
Please find actual CS file which I am trying to serialize.
On Wed, 21 Aug 2019 at 14:06, Marc Gravell wrote:
> K, I took the tiny bit of code you posted, and added
K, I took the tiny bit of code you posted, and added something that uses it
with XmlSerializer, which basically meant implementing the interface (with
NIEs) and adding:
using System;
using System.Xml.Serialization;
using pb = global::Google.Protobuf;
using pbr =
I am not able to initialize XmlSerializer class itself. It is failing
saying "static Types cannot be serialized "
On Wed, 21 Aug 2019 at 00:20, Marc Gravell wrote:
> Can you show any of your XmlSerializer code here, so can understand it? I
> wouldn't expect the presence of a static type to
Can you show any of your XmlSerializer code here, so can understand it? I
wouldn't expect the presence of a static type to break XmlSerializer, I
admit! But also: protobuf code doesn't usually guarantee anything other
than that it should work with the corresponding protobuf library.
On Tue, 20
@Marc Gravell,
I auto-generated ".cs" files from each ".proto" file. . Whereever a message
declared inside another message in proto, auto-generated cs file is
generated as " Nested Types " and Types class is generated as static. (I
guess , its how the generator defined)
And, I am trying to
And can we see some code that actually demonstrates this problem? That
would really help here.
--
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to