Beispiel #1
0
        //------------------------------------------------------------------------

        public string Serialize(bool indented)
        {
            var wr = new SLJsonWriter(new StringBuilder(), indented);

            Serialize(wr);
            return(wr.ToString());
        }
Beispiel #2
0
        public string Serialize(object instance)
        {
            var wr = new SLJsonWriter();

            SerializeObject(wr, instance);
            return(wr.ToString());
        }
Beispiel #3
0
        static string Serialize(object instance)
        {
            var wr = new SLJsonWriter();

            new SLJsonSerializer(wr).SerializeObject(instance);
            return(wr.ToString());
        }