Click here to Skip to main content
15,900,108 members
Home / Discussions / C#
   

C#

 
QuestionFind unique strings for a string array Pin
George_George22-Dec-08 18:12
George_George22-Dec-08 18:12 
AnswerRe: Find unique strings for a string array Pin
Igor Velikorossov22-Dec-08 18:27
Igor Velikorossov22-Dec-08 18:27 
GeneralRe: Find unique strings for a string array Pin
George_George22-Dec-08 18:53
George_George22-Dec-08 18:53 
AnswerRe: Find unique strings for a string array Pin
Christian Graus22-Dec-08 18:37
protectorChristian Graus22-Dec-08 18:37 
GeneralRe: Find unique strings for a string array Pin
George_George22-Dec-08 18:59
George_George22-Dec-08 18:59 
GeneralRe: Find unique strings for a string array Pin
Christian Graus22-Dec-08 20:47
protectorChristian Graus22-Dec-08 20:47 
GeneralRe: Find unique strings for a string array Pin
George_George23-Dec-08 22:41
George_George23-Dec-08 22:41 
AnswerRe: Find unique strings for a string array Pin
dan!sh 22-Dec-08 18:37
professional dan!sh 22-Dec-08 18:37 
May be Array.FindAll can help you. Check out MSDN for it.

Another way could be:
1. Create a list/hashtable. Then loop through the array.
2. Check if the element exists in the list/hashtable.
3. If it does its a duplicate value. Remove it from array.
4. If it doesnt add it to the list/hashtable.

C isn't that hard: void (*(*f[])())() defines f as an array of unspecified size, of pointers to functions that return pointers to functions that return void


"Always program as if the person who will be maintaining your program is a violent psychopath that knows where you live." - Martin Golding

GeneralRe: Find unique strings for a string array Pin
George_George23-Dec-08 22:43
George_George23-Dec-08 22:43 
AnswerRe: Find unique strings for a string array Pin
Brij22-Dec-08 18:39
mentorBrij22-Dec-08 18:39 
GeneralRe: Find unique strings for a string array Pin
George_George22-Dec-08 18:50
George_George22-Dec-08 18:50 
GeneralRe: Find unique strings for a string array Pin
Igor Velikorossov22-Dec-08 18:55
Igor Velikorossov22-Dec-08 18:55 
GeneralRe: Find unique strings for a string array Pin
George_George22-Dec-08 19:48
George_George22-Dec-08 19:48 
GeneralRe: Find unique strings for a string array Pin
Igor Velikorossov22-Dec-08 20:03
Igor Velikorossov22-Dec-08 20:03 
GeneralRe: Find unique strings for a string array Pin
Brij22-Dec-08 19:13
mentorBrij22-Dec-08 19:13 
GeneralRe: Find unique strings for a string array Pin
George_George22-Dec-08 19:58
George_George22-Dec-08 19:58 
GeneralRe: Find unique strings for a string array Pin
Brij22-Dec-08 21:01
mentorBrij22-Dec-08 21:01 
GeneralRe: Find unique strings for a string array Pin
George_George23-Dec-08 22:45
George_George23-Dec-08 22:45 
AnswerRe: Find unique strings for a string array Pin
Giorgi Dalakishvili22-Dec-08 18:53
mentorGiorgi Dalakishvili22-Dec-08 18:53 
GeneralRe: Find unique strings for a string array Pin
Igor Velikorossov22-Dec-08 18:56
Igor Velikorossov22-Dec-08 18:56 
GeneralRe: Find unique strings for a string array Pin
George_George22-Dec-08 19:07
George_George22-Dec-08 19:07 
GeneralRe: Find unique strings for a string array Pin
George_George22-Dec-08 19:03
George_George22-Dec-08 19:03 
AnswerRe: Find unique strings for a string array Pin
Dragonfly_Lee22-Dec-08 19:06
Dragonfly_Lee22-Dec-08 19:06 
GeneralRe: Find unique strings for a string array Pin
George_George22-Dec-08 19:11
George_George22-Dec-08 19:11 
GeneralRe: Find unique strings for a string array Pin
PIEBALDconsult22-Dec-08 19:13
mvePIEBALDconsult22-Dec-08 19:13 

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.