C# Sorting words from xml file to text file in alphabetical order -


i’m working on c# program converts contents of xml document txt file , i’m struggling on adding conditions inputting words in ascending order of size. have entered condition prevents lowercase words being entered , know if either similar method can used return words in alphabetical order or if isn't possible, alternative. condition no lowercase letters followed:

 internal static bool nolowercase(string words)            {     return words.all(c => c >= 'a' && c <= 'z');  } 

you're title threw me off first time, thought wanted in alphabetic order. should sort list length.

var sorted = s in e              orderby s.length ascending              select s; return sorted; 

http://www.dotnetperls.com/sort-strings-length


Popular posts from this blog