Click here to Skip to main content
15,890,845 members
Home / Discussions / C#
   

C#

 
GeneralRe: Calling VB 6 OCX from C# EXE Pin
matinon2223-Jul-13 22:18
matinon2223-Jul-13 22:18 
GeneralRe: Calling VB 6 OCX from C# EXE Pin
Dave Kreskowiak24-Jul-13 3:52
mveDave Kreskowiak24-Jul-13 3:52 
QuestionGeneric collections Pin
PozzaVecia19-Jul-13 0:09
PozzaVecia19-Jul-13 0:09 
AnswerRe: Generic collections Pin
Nicholas Marty19-Jul-13 0:41
professionalNicholas Marty19-Jul-13 0:41 
GeneralRe: Generic collections Pin
PozzaVecia19-Jul-13 1:12
PozzaVecia19-Jul-13 1:12 
GeneralRe: Generic collections Pin
Nicholas Marty19-Jul-13 1:17
professionalNicholas Marty19-Jul-13 1:17 
GeneralRe: Generic collections Pin
PozzaVecia19-Jul-13 1:26
PozzaVecia19-Jul-13 1:26 
GeneralRe: Generic collections Pin
Nicholas Marty19-Jul-13 2:07
professionalNicholas Marty19-Jul-13 2:07 
Why do you need to be able to get the index of a KeyValuePair if you already got the key? Confused | :confused:

Maybe take a look at the hint from Keith.

Note: As I just saw after a bit of researching, the Dictionary uses some hashing of the keys to create some order which means it does not necessarily return the items in the order in which they were added

Source: http://msdn.microsoft.com/en-us/library/xfhwa508.aspx[^]
Quote:
For purposes of enumeration, each item in the dictionary is treated as a KeyValuePair<tkey, tvalue=""> structure representing a value and its key. The order in which the items are returned is undefined.

AnswerRe: Generic collections Pin
Keith Barrow19-Jul-13 1:04
professionalKeith Barrow19-Jul-13 1:04 
GeneralRe: Generic collections Pin
Nicholas Marty19-Jul-13 2:09
professionalNicholas Marty19-Jul-13 2:09 
GeneralRe: Generic collections Pin
Keith Barrow19-Jul-13 2:33
professionalKeith Barrow19-Jul-13 2:33 
AnswerRe: Generic collections Pin
Richard Deeming19-Jul-13 3:22
mveRichard Deeming19-Jul-13 3:22 
AnswerRe: Generic collections Pin
BillWoodruff21-Jul-13 0:57
professionalBillWoodruff21-Jul-13 0:57 
GeneralRe: Generic collections Pin
PozzaVecia21-Jul-13 23:05
PozzaVecia21-Jul-13 23:05 
GeneralRe: Generic collections Pin
BillWoodruff22-Jul-13 0:44
professionalBillWoodruff22-Jul-13 0:44 
GeneralRe: Generic collections Pin
PozzaVecia22-Jul-13 1:14
PozzaVecia22-Jul-13 1:14 
GeneralRe: Generic collections Pin
harold aptroot22-Jul-13 1:05
harold aptroot22-Jul-13 1:05 
GeneralRe: Generic collections Pin
PozzaVecia22-Jul-13 3:31
PozzaVecia22-Jul-13 3:31 
GeneralRe: Generic collections Pin
BillWoodruff23-Jul-13 2:41
professionalBillWoodruff23-Jul-13 2:41 
GeneralRe: Generic collections Pin
harold aptroot23-Jul-13 3:11
harold aptroot23-Jul-13 3:11 
GeneralRe: Generic collections Pin
BillWoodruff23-Jul-13 4:09
professionalBillWoodruff23-Jul-13 4:09 
GeneralRe: Generic collections Pin
harold aptroot23-Jul-13 5:32
harold aptroot23-Jul-13 5:32 
GeneralRe: Generic collections Pin
BillWoodruff23-Jul-13 18:11
professionalBillWoodruff23-Jul-13 18:11 
GeneralRe: Generic collections Pin
harold aptroot23-Jul-13 22:42
harold aptroot23-Jul-13 22:42 
GeneralRe: Generic collections Pin
harold aptroot21-Jul-13 1:18
harold aptroot21-Jul-13 1:18 

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.