コード例 #1
0
ファイル: Program.cs プロジェクト: coarasaw/Guia2019
        static void Main(string[] args)
        {
            GuardarTexto <bool, string> gt = new GuardarTexto <bool, string>();
            Serializar <bool, string>   s  = new Serializar <bool, string>();

            Console.WriteLine(gt.Guardar(false));
            Console.WriteLine(gt.Leer());
            Console.WriteLine(s.Guardar(false));
            Console.WriteLine(s.Leer());
            Console.ReadKey();
        }
コード例 #2
0
        static void Main(string[] args)
        {
            GuardarTexto <int, String> texto  = new GuardarTexto <int, string>();
            Serializar <int, String>   objeto = new Serializar <int, string>();

            Console.WriteLine(texto.Guardar(1));
            Console.WriteLine(texto.Leer());
            Console.WriteLine();
            Console.WriteLine(objeto.Guardar(1));
            Console.WriteLine(objeto.Leer());

            Console.ReadKey();
        }