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

C#

 
QuestionHow to use IPersistStreamInit? Pin
zhaoyu16215-Mar-06 18:06
zhaoyu16215-Mar-06 18:06 
QuestionReg Nullable.Wrap function Pin
Kiran Kumar Singani15-Mar-06 17:39
Kiran Kumar Singani15-Mar-06 17:39 
QuestionCan not use RightClick/Past when i catch Keys in TextBox? Pin
superdragon15-Mar-06 17:23
superdragon15-Mar-06 17:23 
AnswerRe: Can not use RightClick/Past when i catch Keys in TextBox? Pin
superdragon15-Mar-06 19:21
superdragon15-Mar-06 19:21 
QuestionSearch function in Crystal Report Pin
angelagke15-Mar-06 15:33
angelagke15-Mar-06 15:33 
QuestionBar code component connect to computer? Pin
notIdea15-Mar-06 14:43
notIdea15-Mar-06 14:43 
AnswerRe: Bar code component connect to computer? Pin
mcljava15-Mar-06 18:21
mcljava15-Mar-06 18:21 
QuestionI’m a c++ guy and C#’s List scares me. Pin
Julien15-Mar-06 12:37
Julien15-Mar-06 12:37 
So C# has a HashTable in the form of Dictionary<K,T> – That’s great std did not have this, and it was lacking for its absence.

C++ C#
List<T> LinkedLink<T>
Slist<T> Queue<T> (if that’s all you used slist<T> for then okay) // I can’t remember the c++ single linked list name.
Slist<T> Stack<T> (Ok, so maybe there’s more code generated in c++ than needed)
Vector<T> List<T> (misleading name for me, and I can not see doco on the behaviour of deleting/inserting in the middle, realloc? Memmove?)

Now the gaps:
?? Dictionary<K,T> (Great! We have a HashTable this is cool)
?? SortedDictionary<K,T> (Curious – more comments below)
Map<K,T> ?? (Umm? Does this gap imply that we shouldn’t need a tree container?) (map<K,T> and set<T> are red-black trees)
Set<T> ?? (Again, what does this absence mean? A Dictionary<K,T> will do in this case, but there is extra unnecessary code there).

In practice we may find that we can use the SortedDictionary<K,T> where we used to use map<K,T>, but what is the cost/benefit of each?
I don’t know, I don’t know how to find out apart from testing it!
So, I’m asking you! Please what is going on in these containers?

Especially List<T> and the realloc/memmove issue.

Jules.

(Excuse my poor formatting, its been a while between posts)
GeneralRe: I’m a c++ guy and C#’s List scares me. Pin
George L. Jackson15-Mar-06 17:54
George L. Jackson15-Mar-06 17:54 
GeneralRe: I’m a c++ guy and C#’s List scares me. Pin
Julien15-Mar-06 18:25
Julien15-Mar-06 18:25 
QuestionDatagrid help Pin
bazzanewt15-Mar-06 11:56
bazzanewt15-Mar-06 11:56 
AnswerRe: Datagrid help Pin
Robert Rohde15-Mar-06 18:28
Robert Rohde15-Mar-06 18:28 
QuestionCapture mouse with transparent forms Pin
AbyssNOLF15-Mar-06 9:37
AbyssNOLF15-Mar-06 9:37 
AnswerAny help please? Pin
AbyssNOLF17-Mar-06 5:28
AbyssNOLF17-Mar-06 5:28 
QuestionWhy will LINQ fail ? Pin
erdsah8815-Mar-06 8:47
erdsah8815-Mar-06 8:47 
QuestionWhy will LINQ fail ? Pin
erdsah8815-Mar-06 8:46
erdsah8815-Mar-06 8:46 
AnswerRe: Why will LINQ fail ? Pin
Judah Gabriel Himango15-Mar-06 8:58
sponsorJudah Gabriel Himango15-Mar-06 8:58 
QuestionNew window in application Pin
conrado715-Mar-06 8:35
conrado715-Mar-06 8:35 
AnswerRe: New window in application Pin
DougW4815-Mar-06 11:05
DougW4815-Mar-06 11:05 
GeneralRe: New window in application Pin
conrado715-Mar-06 11:33
conrado715-Mar-06 11:33 
Questionclosing forms Pin
Vineet Rajan15-Mar-06 6:52
Vineet Rajan15-Mar-06 6:52 
AnswerRe: closing forms Pin
DougW4815-Mar-06 7:30
DougW4815-Mar-06 7:30 
QuestionConvert VB.NET 2005 to C#.NET 2005 Pin
yesufollower15-Mar-06 5:51
yesufollower15-Mar-06 5:51 
AnswerRe: Convert VB.NET 2005 to C#.NET 2005 Pin
Ed.Poore15-Mar-06 6:34
Ed.Poore15-Mar-06 6:34 
AnswerRe: Convert VB.NET 2005 to C#.NET 2005 Pin
Joe Woodbury15-Mar-06 7:46
professionalJoe Woodbury15-Mar-06 7:46 

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.