我需要將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#等價於。如果你不明白什麼意思閱讀文檔。請在這裏請求之前這樣做。 –