こんにちは皆さん、どうすれば foreach で 1 つの反復を繰り返すことができますか?
foreach (string line in File.ReadLines("file.txt"))
{
// now line == "account", next line == "account1"
if (line.Contains("a"))
//next loop take "account1";
else
// need to set that next loop will take line == "account" again
}
どうやってするの?