예제 #1
0
 public override void Leer(StreamReader lector)
 {
     string[] parametros;
     try
     {
         parametros = MA.Leer(lector);
     }
     catch (Exception e)
     {
         throw new Exception(Mensajes.ErrorAlLeerParametro(Definicion.Nombre, e));
     }
     EstablecerValor(parametros);
 }
예제 #2
0
 public override void Leer(StreamReader lector)
 {
     string[] parametros;
     try
     {
         parametros = MA.Leer(lector);
     }
     catch (Exception e)
     {
         throw new Exception(Mensajes.ErrorAlLeerParametro(Definicion.Nombre, e));
     }
     if (parametros.Length != 1)
     {
         throw new Exception(Mensajes.CantidadDeParametrosNoCoincidenConDefinicion);
     }
     EstablecerValor(parametros[0]);
 }