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

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

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 GetMessageObject ( string msgID ) : Message
msgID string
Результат Message
        public Message GetMessageObject(string msgID)
        {
            if (msgID == null)
                return null;
            Message message;
            if (!Messages.TryGetValue(msgID, out message))
                return new Message { MsgID = msgID };
            return message;
        }