public MessageHandler Get(MessageIdentifier identifier) { if (messageHandlers.TryGetValue(identifier, out var value)) { return(value); } throw new KeyNotFoundException(identifier.ToString()); }
public MessageHandler Get(MessageIdentifier identifier) { MessageHandler value; if (messageHandlers.TryGetValue(identifier, out value)) { return value; } throw new KeyNotFoundException(identifier.ToString()); }