public IFileLoader GetLoader(String type) { if (fileloaders.ContainsKey(type)) { IFileLoader loader = fileloaders[type]; return((IFileLoader)Activator.CreateInstance(loader.GetType())); } return(null); }