public Centralita(string razonSocial) : this() { IGuardar <string, string> guardar = new GuardarTexto <string, string>(); this.razonSocial = razonSocial; if (guardar.Guardar(razonSocial)) { Console.WriteLine("FUNCIONA INTERFACE"); } }
static void Main(string[] args) { Serializar <int, string> serializar = new Serializar <int, string>(); Console.WriteLine(serializar.Leer()); Console.WriteLine(serializar.Guardar(10)); GuardarTexto <int, string> guardarTexto = new GuardarTexto <int, string>(); Console.WriteLine(guardarTexto.Leer()); Console.WriteLine(guardarTexto.Guardar(10)); Console.ReadKey(); }