Exemplo n.º 1
0
        /// <summary>
        /// Gets the value of an int32 kay/value pair.
        /// </summary>
        /// <returns><c>true</c>, if int32 was gotten, <c>false</c> otherwise.</returns>
        /// <param name="key">Key.</param>
        /// <param name="value">Value.</param>
        public static bool GetInt32(string key, ref Int32 value)
        {
            bool wasSuccess = false;

            if (m_tangoConfig != IntPtr.Zero)
            {
                wasSuccess = TangoConfigAPI.TangoConfig_getInt32(m_tangoConfig, key, ref value) == Common.ErrorType.TANGO_SUCCESS;
            }
            if (!wasSuccess)
            {
                Debug.Log(string.Format(m_ErrorLogFormat, "GetInt32", key, value));
            }
            return(wasSuccess);
        }