mardi 6 juin 2017

Checking if a string of numbers is sorted C# in an if statement

I'm trying to figure out how to write an if statement in C# that basically does this

string myString = "1234";  
if( myString is sorted)
    {
        //Do some stuff
    }
else
    {
       // Do some other stuff
    }

Aucun commentaire:

Enregistrer un commentaire