Click here to Skip to main content
15,883,901 members
Home / Discussions / C#
   

C#

 
GeneralRe: xml serialization Pin
BoneSoft12-Aug-07 8:46
BoneSoft12-Aug-07 8:46 
Questionbindingsource.filter wildcards Pin
Seishin#10-Aug-07 3:59
Seishin#10-Aug-07 3:59 
Questioninternal and internal protected Pin
Sonia Gupta10-Aug-07 2:48
Sonia Gupta10-Aug-07 2:48 
AnswerRe: internal and internal protected Pin
Abisodun10-Aug-07 3:35
Abisodun10-Aug-07 3:35 
AnswerRe: internal and internal protected Pin
sreejith ss nair10-Aug-07 3:47
sreejith ss nair10-Aug-07 3:47 
QuestionCommunicate between windows and linux box Pin
sreejith ss nair10-Aug-07 2:42
sreejith ss nair10-Aug-07 2:42 
AnswerRe: Communicate between windows and linux box Pin
pbraun10-Aug-07 5:44
pbraun10-Aug-07 5:44 
QuestionAlphabetising an array using OrderBy Pin
JamesBarnes10-Aug-07 2:31
JamesBarnes10-Aug-07 2:31 
Items[] ItemsArray = new Items[100];<br />
Items[] AlphabetisedItemsArray = new Items[100];



I have an Items array of size 1*100, now lets say i have populated that array, and want to organise its elements in alphabetical order, by item name.

I think the code should be something like this :

AlphabetisedItemsArray = ItemsArray.OrderBy(ItemsArray,Items.getItemName)

If it helps at all, here is the structure of the items class:

public class Items<br />
    {<br />
        string Name; //40 bytes<br />
<br />
            public void SetName(string aName)<br />
            {<br />
                Name = aName;<br />
            }<br />
            public string GetName()<br />
            {<br />
                return Name;<br />
            }<br />
}<br />



Any help is greatly appreciated, thanks =)
AnswerRe: Alphabetising an array using OrderBy Pin
Kevin McFarlane10-Aug-07 3:06
Kevin McFarlane10-Aug-07 3:06 
GeneralRe: Alphabetising an array using OrderBy Pin
JamesBarnes10-Aug-07 6:34
JamesBarnes10-Aug-07 6:34 
AnswerRe: Alphabetising an array using OrderBy Pin
Judah Gabriel Himango10-Aug-07 4:57
sponsorJudah Gabriel Himango10-Aug-07 4:57 
QuestionEnvironment Variable USERNAME returns null reference error for Service Account Pin
Rajni P10-Aug-07 0:34
Rajni P10-Aug-07 0:34 
AnswerRe: Environment Variable USERNAME returns null reference error for Service Account Pin
Luc Pattyn10-Aug-07 3:23
sitebuilderLuc Pattyn10-Aug-07 3:23 
QuestionPrinting through DMP Pin
yogesh_kumar_agarwal10-Aug-07 0:23
yogesh_kumar_agarwal10-Aug-07 0:23 
AnswerRe: Printing through DMP Pin
Pete O'Hanlon10-Aug-07 8:50
mvePete O'Hanlon10-Aug-07 8:50 
GeneralRe: Printing through DMP Pin
yogesh_kumar_agarwal11-Aug-07 1:06
yogesh_kumar_agarwal11-Aug-07 1:06 
Questioncrystal reports Pin
raj@code9-Aug-07 23:57
raj@code9-Aug-07 23:57 
AnswerRe: crystal reports Pin
Imranlogi10-Aug-07 2:23
Imranlogi10-Aug-07 2:23 
AnswerSTOP CROSS-POSTING Pin
leckey10-Aug-07 3:01
leckey10-Aug-07 3:01 
GeneralRe: STOP CROSS-POSTING Pin
Justin Perez10-Aug-07 3:19
Justin Perez10-Aug-07 3:19 
GeneralRe: STOP CROSS-POSTING Pin
leckey10-Aug-07 4:35
leckey10-Aug-07 4:35 
GeneralRe: STOP CROSS-POSTING Pin
Justin Perez10-Aug-07 4:53
Justin Perez10-Aug-07 4:53 
GeneralRe: STOP CROSS-POSTING Pin
Judah Gabriel Himango10-Aug-07 5:24
sponsorJudah Gabriel Himango10-Aug-07 5:24 
GeneralRe: STOP CROSS-POSTING Pin
Dan Neely10-Aug-07 5:28
Dan Neely10-Aug-07 5:28 
GeneralRe: STOP CROSS-POSTING Pin
leckey10-Aug-07 5:32
leckey10-Aug-07 5:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.