public List <Sensor> GetSensors() { if (sensors_list == null) { sensors_list = new SensorsList(); } return(_sensors); }
public static SensorsList GetSensorsListInstance() { if (sensors_list == null) { lock (objLock) { if (sensors_list == null) { sensors_list = new SensorsList(); } } } return(sensors_list); }