예제 #1
0
 public IWaterOneFlowParser GetParser(DataServiceInfo dataService)
 {
     IWaterOneFlowParser parser;
     switch (dataService.Version.ToString("F1", CultureInfo.InvariantCulture))
     {
         case "1.0":
             parser = new WaterOneFlow10Parser();
             break;
         default:
             parser = new WaterOneFlow11Parser();
             break;
     }
     return parser;
 }
예제 #2
0
        public IWaterOneFlowParser GetParser(DataServiceInfo dataService)
        {
            IWaterOneFlowParser parser;

            switch (dataService.Version.ToString("F1", CultureInfo.InvariantCulture))
            {
            case "1.0":
                parser = new WaterOneFlow10Parser();
                break;

            default:
                parser = new WaterOneFlow11Parser();
                break;
            }
            return(parser);
        }