Ejemplo n.º 1
0
        /// <summary>
        /// Get the name of the school
        /// </summary>
        /// <param name="s"></param>
        /// <remarks>Return 999 if the school doesnt exits (Branco)</remarks>
        /// <returns>Return the key of the dicinionary</returns>
        public static int GetKey(string s)
        {
            int?i = Escolas.First(X => X.Value == s).Key;

            if (i == null)
            {
                return(999);
            }

            return(i.Value);
        }