/// <summary> /// Gets the value of a double key/value pair. /// </summary> /// <returns><c>true</c>, if double was gotten, <c>false</c> otherwise.</returns> /// <param name="key">Key.</param> /// <param name="value">Value.</param> public static bool GetDouble(string key, ref double value) { bool wasSuccess = false; if (m_tangoConfig != IntPtr.Zero) { wasSuccess = TangoConfigAPI.TangoConfig_getDouble(m_tangoConfig, key, ref value) == 0; } if (!wasSuccess) { Debug.Log(string.Format(m_ErrorLogFormat, "GetDouble", key, value)); } return(wasSuccess); }
/// <summary> /// Gets the value of a double key/value pair. /// </summary> /// <returns><c>true</c>, if double was gotten, <c>false</c> otherwise.</returns> /// <param name="key">Key.</param> /// <param name="value">Value.</param> public static bool GetDouble(string key, ref double value) { bool wasSuccess = false; if (m_tangoConfig != IntPtr.Zero) { wasSuccess = TangoConfigAPI.TangoConfig_getDouble(m_tangoConfig, key, ref value) == 0; } if (!wasSuccess) { DebugLogger.GetInstance.WriteToLog(DebugLogger.EDebugLevel.DEBUG_ERROR, string.Format(m_ErrorLogFormat, "GetDouble", key, value)); } return(wasSuccess); }