GetInt() public method

public GetInt ( string key, string alias ) : int
key string
alias string
return int
Ejemplo n.º 1
0
        /// <summary>
        /// Returns the integer alias first from this IConfig then
        /// the parent if there is none.
        /// </summary>
        private int GetIntAlias(string key, string alias)
        {
            int result = -1;

            if (aliasText.ContainsInt(key, alias))
            {
                result = aliasText.GetInt(key, alias);
            }
            else
            {
                result = ConfigSource.Alias.GetInt(key, alias);
            }

            return(result);
        }