Answers for "c# foreach shorthand"

C#
1

foreach shortcut c#

Type foreach and press the Tab key two times. It works the same as what you did with the for loop.
Posted by: Guest on October-06-2021
1

c# list.foreach

List<string> someList = <some way to init>
someList.ForEach(delegate(string s) {
    <process the string>
});
Posted by: Guest on May-28-2020

C# Answers by Framework

Browse Popular Code Answers by Language