public static object GetConfig(string path, Type type) { if (string.IsNullOrEmpty(path)) { path = ConfigurationManager.AppSettings["ConfigPath"]; } object config = SPCoderUtils.Deserialize(type, GetFullPathToConfigFile(path)); return(config); }