Adaptive.ReactiveTrader.EventStore.EventTypeResolver.GetTypeForEventName C# (CSharp) Метод

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

public GetTypeForEventName ( string name ) : Type
name string
Результат System.Type
        public Type GetTypeForEventName(string name)
        {
            Type eventType;
            var strippedName = name.Replace(" ", string.Empty);
            if (!_typeMap.TryGetValue(strippedName, out eventType))
            {
                throw new ArgumentException($"Unable to find suitable type for event name {name}. Expected to find a type named {strippedName}Event");
            }

            return eventType;
        }
    }