Ejemplo n.º 1
0
        public static Languages English()
        {
            var keyValuePair = ExtensionMethods.GetKeyValuePairsFromEnum <Languages>().SingleOrDefault(elem => elem.Value == "EN");

            return((Languages)keyValuePair.Key);
        }
Ejemplo n.º 2
0
        // ----------------------------------------------

        public static Countries UnitedStates()
        {
            var keyValuePair = ExtensionMethods.GetKeyValuePairsFromEnum <Countries>().SingleOrDefault(elem => elem.Value == "US");

            return((Countries)keyValuePair.Key);
        }