public static TargetType GetTargetType(string name) { if (!TargetTypes.ContainsKey(name)) { return(null); } TargetType tType = TargetTypes[name]; return(tType); }