SharpYaml icon indicating copy to clipboard operation
SharpYaml copied to clipboard

Help class header

Open nerogcy opened this issue 6 years ago • 1 comments
trafficstars

pls help! i always get this kind of weird text behind my class object

!Object.Test,%2520Object.Test,%2520Version=1.0.0.0,%2520Culture=neutral,%2520PublicKeyToken=null ObjectCollection:

nerogcy avatar Apr 20 '19 16:04 nerogcy

var yourObject = new YourClass();
var config = new SerializerSettings();
config.RegisterTagMapping("YourName", typeof(YourClass));

var serialzer = new Serializer(config);
serialzer.Serialize(stream, yourObject);

Have a try, it works for me

GuRenYiBeiAiHuangLiang avatar Sep 10 '19 16:09 GuRenYiBeiAiHuangLiang