foreach vs somelist.foreach(){}
there apparently ways iterate over collection. extraordinary there any differences, since you'd proceed over other.
first type:
list<string> somelist = <some proceed init>
foreach(string s somelist) {
<process string>
}
other way:
list<string> somelist = <some proceed init>
somelist.foreach(delegate(string s) {
<process string>
});
i suspect off tip head, instead opposite nominee i above, you'd have reusable nominee specify...
Comments
Post a Comment