public IEnumerable <object> GetInstances(string typeName, out Type type) { var result = ArrayMap.First(p => p.Key.Name.ToLower() == typeName.ToLower()); type = result.Key; return(result.Value.Invoke()); }