示例#1
0
            private void ReadTemperature(string input)
            {
                TemperatureValueChecker value = new TemperatureValueChecker();

                TrimInputToGetValue(input);
                value.Temperature(_val);
            }
            internal void Temperatureread(string input)
            {
                string tmp = input.Split(':')[1].TrimStart();

                try
                {
                    Val = Convert.ToInt32(tmp);
                }
                catch (Exception e)
                {
                    Console.WriteLine("Value Not Present");
                }

                TemperatureValueChecker value = new TemperatureValueChecker();

                value.Temperature(Val);
            }