Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

iterators in C#?

$
0
0

Hey kids!

There is a piece of code in my C++ library that I would like to recreate in C#, that is... if C#'s String has not yet come with that solution :)

for (std::string::iterator it = str.begin(); it!=str.end(); ++it)
        if(!std::isalpha(*it,loc)) {
            //do something;
        }
I am interested specially in finding out if there are iterators in C#!


Worry is a misuse of imagination :)


Viewing all articles
Browse latest Browse all 31927

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>