Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
QuestionGirdview Template field problem Pin
SharonRao14-Feb-07 13:42
SharonRao14-Feb-07 13:42 
QuestionStartup - Triggering events Pin
Glen Harvy14-Feb-07 12:56
Glen Harvy14-Feb-07 12:56 
AnswerRe: Startup - Triggering events Pin
Luc Pattyn14-Feb-07 14:59
sitebuilderLuc Pattyn14-Feb-07 14:59 
QuestionMaking a count of unique elements in an array Pin
TrooperIronMan14-Feb-07 12:34
TrooperIronMan14-Feb-07 12:34 
AnswerRe: Making a count of unique elements in an array Pin
Luc Pattyn14-Feb-07 12:43
sitebuilderLuc Pattyn14-Feb-07 12:43 
GeneralRe: Making a count of unique elements in an array Pin
TrooperIronMan14-Feb-07 14:28
TrooperIronMan14-Feb-07 14:28 
GeneralRe: Making a count of unique elements in an array Pin
Luc Pattyn14-Feb-07 14:54
sitebuilderLuc Pattyn14-Feb-07 14:54 
GeneralRe: Making a count of unique elements in an array Pin
TrooperIronMan15-Feb-07 3:32
TrooperIronMan15-Feb-07 3:32 
I was aware I can only take 5 elements... indeed it was only prototype I built before you gave me idea I should use hashtable... regular usage of this wouldn't be user input 5 strings from console... nor it should be in main at first place... it should be method... probably in separate class that is given array as argument... and it return (Hashtable) which contain unique elements and their count...

My first try before Hashtable was actually 2 dimensional object array... but was tired of casting int in and out for count every time... so I switched to int array+arraylist... don't know which solution is more complex. I'll redo my code now with hash table...

I know about conventions to never give single letter variable names... didn't do it on purpose... and would certainly rename this later if I was happy with approach... I already had bunch of commented code so it was mess... I always first comment things out I don't like... then move them beyond last } and only delete them after I have final release fully debugged...

Sure I got some good read on generics so I hope that will give me some idea...

Thanks guys for help, this was actually one of questions I had to solve on my job interview-test yesterday... other questions were more like this... combined with ADO.NET, few SQL only... and some .Net stuff.... like, what is base class in net... and such stuff...

I messed up this one that is sure... Poke tongue | ;-P

GeneralRe: Making a count of unique elements in an array Pin
Guffa14-Feb-07 15:11
Guffa14-Feb-07 15:11 
GeneralRe: Making a count of unique elements in an array Pin
TrooperIronMan15-Feb-07 13:22
TrooperIronMan15-Feb-07 13:22 
QuestionFlash video files Pin
alostdruid14-Feb-07 11:18
alostdruid14-Feb-07 11:18 
QuestionSerial Communication using SerialDataReceivedEventHandler Pin
cocoonwls14-Feb-07 10:42
cocoonwls14-Feb-07 10:42 
QuestionCreate report ... Word / pdf or new form Pin
Rick van Woudenberg14-Feb-07 10:15
Rick van Woudenberg14-Feb-07 10:15 
AnswerRe: Create report ... Word / pdf or new form Pin
cocoonwls14-Feb-07 10:27
cocoonwls14-Feb-07 10:27 
QuestionCollection of objects Pin
Wayne Phipps14-Feb-07 9:38
Wayne Phipps14-Feb-07 9:38 
AnswerRe: Collection of objects Pin
Guffa14-Feb-07 11:30
Guffa14-Feb-07 11:30 
QuestionEscaping special characters in SQL Statement after form submission Pin
dboy22114-Feb-07 9:30
dboy22114-Feb-07 9:30 
AnswerRe: Escaping special characters in SQL Statement after form submission Pin
Wayne Phipps14-Feb-07 9:48
Wayne Phipps14-Feb-07 9:48 
AnswerRe: Escaping special characters in SQL Statement after form submission Pin
Abisodun14-Feb-07 9:55
Abisodun14-Feb-07 9:55 
Questionparsing dicom file Pin
rajuhero14-Feb-07 9:06
rajuhero14-Feb-07 9:06 
AnswerRe: parsing Pin
Colin Angus Mackay14-Feb-07 9:10
Colin Angus Mackay14-Feb-07 9:10 
QuestionHow to create folder by C#? Pin
abalbo14-Feb-07 8:53
abalbo14-Feb-07 8:53 
AnswerRe: How to create folder by C#? Pin
Stefan Troschuetz14-Feb-07 9:00
Stefan Troschuetz14-Feb-07 9:00 
AnswerRe: How to create folder by C#? Pin
MaxRelaxman14-Feb-07 9:04
MaxRelaxman14-Feb-07 9:04 
QuestionTwo Window Applications - One Installation Pin
Khoramdin14-Feb-07 8:25
Khoramdin14-Feb-07 8:25 

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.