EddiDataDefinitions.GameMode.FromEDName C# (CSharp) Méthode

FromEDName() public static méthode

public static FromEDName ( string from ) : GameMode
from string
Résultat GameMode
        public static GameMode FromEDName(string from)
        {
            string tidiedFrom = from == null ? null : from.ToLowerInvariant();
            GameMode result = MODES.FirstOrDefault(v => v.edname.ToLowerInvariant() == tidiedFrom);
            if (result == null)
            {
                Logging.Report("Unknown game mode ED name " + from);
                result = new GameMode(from, tidiedFrom);
            }
            return result;
        }
    }