你分裂为"="而不是":"
尝试
if (entry.ToUpper().IndexOf("FILE:") == 0) { //override default log location MyFileLocation location = entry.Split(new char[] {':'},2)[1]; }