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

C#

 
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 
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 
Got it...

public Dictionary<object, int=""> GetUniqueElementCollection(object[] PassedArray)
{
Dictionary<object, int=""> ResultList = new Dictionary<object, int="">();
foreach (object origObject in PassedArray)
{
bool exist = false;
foreach (KeyValuePair<object, int=""> obj in ResultList)
{
if (obj.Key.Equals(origObject)) exist = true;
}

if (exist)
{
ResultList[origObject] += 1;
}
else
{
ResultList.Add(origObject, 1);
}
}
return ResultList;
}
what do you think guys?
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 
AnswerRe: Two Window Applications - One Installation Pin
Colin Angus Mackay14-Feb-07 9:09
Colin Angus Mackay14-Feb-07 9:09 
QuestionRe: Two Window Applications - One Installation Pin
Khoramdin14-Feb-07 14:33
Khoramdin14-Feb-07 14:33 

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.