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)); }
public static bool DiapasonContains(this string s, double value, bool roundSingle = true) { return(Diapason.CreateDouble(s, roundSingle).Contains(value)); }