public static SourceFile GetSourceFile(string name, Guid lang, Guid vend, Guid docu) { for (int i=0; i < sourceFiles.Count; i++) { SourceFile sFile = (SourceFile)sourceFiles[i]; if ((sFile.name == name) && sFile.GuidsMatch(lang,vend,docu)) return sFile; } return new SourceFile(name,lang,vend,docu); }