我需要将Delphi程序转换为C#,我有'WITH'问题 我找不出适当的转换。任何帮助都会很棒。 我附上了我有麻烦的片段。 QueryLchistory是sql查询,我也删除了while循环内执行的语句。德尔福到C#转换
with QueryLcHistory do begin
First;
RemainingMargin := 0;
while (not Eof) and Another test Case
do begin
//Statements #1
Next;
end;
while (not Eof) and Another test Case2
do begin
// Statements #2
Next;
end;
end; {with}
随着不是一个循环。没有C#等价于。如果你不明白什么意思阅读文档。请在这里请求之前这样做。 –