Windows Phone Developers

Wednesday, September 3, 2008

Creating and Sorting Arrays in C#

private void csharp_array()

{

string[] arCities = {"","","",""};

arCities[0] = "Zurich";

arCities[1] = "Havana";

arCities[2] = "Amalapuram";

arCities[3] = "San Francisco";

//arnames

Array.Sort(arCities);

}

Array.Sort method sorts the elements in an entire one-dimensional Array using the IComparable implementation of each element of the Array.



Before Sorting

After Sorting


Sorting Arrays in C#, Creating Arrays in C#, Array.Sort in C#, Sorting One Dimensional arrays using C#, C# Array sort method Digg Technorati Delicious StumbleUpon Reddit BlinkList Furl Mixx Facebook Google Bookmark Yahoo
ma.gnolia squidoo newsvine live netscape tailrank mister-wong blogmarks slashdot spurl StumbleUpon

1 comment:

  1. Free classified ads... promote your sites/blog

    No login required...

    http://publishonweb.blogspot.com/

    ReplyDelete

kbAlertz.com :: Visual Studio 2005

kbAlertz.com :: Visual Studio 2008

kbAlertz.com :: Visual Basic 2005