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(); }
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(); }