System.Globalization.Localization.GetMessage C# (CSharp) Метод

GetMessage() публичный Метод

Given a msgID, returns the associated msgStr. If msgID doesn't exist in this collection, returns msgID. If the associated msgStr is empty, returns msgID.
public GetMessage ( string msgID ) : string
msgID string
Результат string
        public string GetMessage(string msgID)
        {
            Message message;
            if (!Messages.TryGetValue(msgID, out message))
            {
                return msgID;
            }

            return String.IsNullOrEmpty(message.MsgStr) ? msgID : message.MsgStr;
        }