/// <summary> /// Returns the message type that corresponds to the given chat symbol, or Unknown if none does. /// </summary> public static LogMessageType MessageTypeForChatSymbol(string ChatSymbol) { if (!SymbolToMessageType.TryGetValue(ChatSymbol, out LogMessageType Res)) { Res = LogMessageType.Unknown; } return(Res); }
/// <summary> /// Returns the chat symbol that corresponds to messages of the given message type, or an empty string if none does. /// </summary>= public static string ChatSymbolForMessageType(LogMessageType Type) { var KVP = SymbolToMessageType.FirstOrDefault(c => c.Value == Type); return(KVP.Key == null ? "" : KVP.Key); }