Exemple #1
0
 public WeatherObject(IFileAcManager manager, string id, bool enabled)
     : base(manager, id, enabled)
 {
     _temperatureDiapasonLazier = Lazier.Create(() => TemperatureDiapason == null ? null : Diapason.CreateDouble(TemperatureDiapason));
     _timeDiapasonLazier        = Lazier.Create(() => TimeDiapason == null ? null : Diapason.CreateTime(TimeDiapason));
 }
Exemple #2
0
 public static bool DiapasonContains(this string s, double value, bool roundSingle = true)
 {
     return(Diapason.CreateDouble(s, roundSingle).Contains(value));
 }