상속: ITomlObjectVisitor
예제 #1
0
파일: Program.cs 프로젝트: paiden/Nett
        static int Main(string[] args)
        {

            TextReader reader = Console.In;
            TextWriter writer = Console.Out;
            var content = reader.ReadToEnd();

            try
            {
                //Debugger.Launch();
                var t = Toml.ReadString(content);
                var dict = t.ToDictionary();
                var conv = new ToJsonConverter();
                var json = conv.Convert(t);
                writer.Write(json);

                Console.WriteLine(json);

                return 0;
            }
            catch (Exception exc)
            {
                Console.WriteLine(exc.ToString());
                return 1;
            }
        }
예제 #2
0
        static int Main(string[] args)
        {
            TextReader reader  = Console.In;
            TextWriter writer  = Console.Out;
            var        content = reader.ReadToEnd();

            try
            {
                //Debugger.Launch();
                var t    = Toml.ReadString(content);
                var dict = t.ToDictionary();
                var conv = new ToJsonConverter();
                var json = conv.Convert(t);
                writer.Write(json);

                return(0);
            }
            catch (Exception exc)
            {
                Console.WriteLine(exc.ToString());
                return(1);
            }
        }