Beispiel #1
0
        /// <summary>
        /// Set the Value int for an IntSocket from given string
        /// </summary>
        /// <param name="socket">IntSocket for wich Value is set</param>
        /// <param name="nr">int string</param>
        public void get_int(IntSocket socket, string nr)
        {
            if (string.IsNullOrEmpty(nr))
            {
                return;
            }

            socket.Value = int.Parse(nr);
        }
Beispiel #2
0
        /// <summary>
        /// Set the Value int for an IntSocket from given string
        /// </summary>
        /// <param name="socket">IntSocket for wich Value is set</param>
        /// <param name="nr">int string</param>
        public void get_int(IntSocket socket, string nr)
        {
            if (string.IsNullOrEmpty(nr)) return;

            socket.Value = int.Parse(nr);
        }