private static IProjectItem GetSourceFile(IProjectItem parentFolder, IDeclaration typeDeclaration) { string classname = typeDeclaration.DeclaredName; return(parentFolder.GetSubItem(classname + ".cs")); }