is an important statement used in C#
frameworks. It is similar with for
statement but it cannot be used to add or remove source items.
foreach (char t in "Dotnetfunda")
Console.WriteLine(t); // This will prints all the 't's present in that string
We can also use break
keywords to control the execution like play and pause.
can also be excited by some other jump statements such as throw
Asked In: Spotted While Learning |