Click here to Skip to main content
15,888,020 members
Home / Discussions / C#
   

C#

 
AnswerRe: showing newly added row in datagridview - Winforms Pin
Not Active25-Apr-11 10:40
mentorNot Active25-Apr-11 10:40 
GeneralRe: showing newly added row in datagridview - Winforms Pin
manumith25-Apr-11 10:43
manumith25-Apr-11 10:43 
GeneralRe: showing newly added row in datagridview - Winforms Pin
Not Active25-Apr-11 11:49
mentorNot Active25-Apr-11 11:49 
GeneralRe: showing newly added row in datagridview - Winforms Pin
manumith25-Apr-11 13:04
manumith25-Apr-11 13:04 
GeneralRe: showing newly added row in datagridview - Winforms Pin
Richard MacCutchan25-Apr-11 22:08
mveRichard MacCutchan25-Apr-11 22:08 
GeneralRe: showing newly added row in datagridview - Winforms Pin
Pete O'Hanlon25-Apr-11 22:38
mvePete O'Hanlon25-Apr-11 22:38 
AnswerRe: showing newly added row in datagridview - Winforms Pin
Luc Pattyn25-Apr-11 11:11
sitebuilderLuc Pattyn25-Apr-11 11:11 
Question.NET Collections - Capacity [modified] Pin
devvvy25-Apr-11 1:03
devvvy25-Apr-11 1:03 
How come there's no such properties as "List|Dictionary.Capacity" - and, does anybody knows if inserting to last slot what's dotnet Collection behavior? Allocate 2xCapacity? In absence of MyDict.Capacity, how can I manipulate this?

Also, when you insert an element if Reference type into collection class, Collection class only stores a "Pointer" or "Reference", not a "Copy"
<br />
IDictionary SomeDict = new Dictionary<SomeClass, string>(MAXITEMS);<br />
                SomeClass o = new SomeClass();<br />
                o.a = -1;<br />
                o.b = -1;<br />
                o.c = -1;<br />
                o.d = -1;<br />
                SomeDict.Add(o, Guid.NewGuid().ToString());<br />


Observer this on debugger:
<br />
*o<br />
*SomeDict.ElementAt(0).Key<br />


They'd give you same reference.

So, I'm not quite sure why I'd pick a LinkedList over a Dictionary - my guess is, Dictionary's Hash table in the back is still one contiguous block of memory, where as LinkedList is not (but also because it's slots of memory all over the place, access is slower?) But there's no MSDN doc or article which describes this (For example, LinkedList references to payload/elements are stored in usual "array" of reference? If so it too has allocation problem if you keep adding). So really is allocation the only concern?

Thanks

Good reference but a bit unclear in some respect...[^]

Another discussion[^]
dev
modified on Monday, April 25, 2011 7:16 AM

AnswerRe: .NET Collections - Capacity Pin
Luc Pattyn25-Apr-11 1:17
sitebuilderLuc Pattyn25-Apr-11 1:17 
GeneralRe: .NET Collections - Capacity Pin
devvvy25-Apr-11 1:27
devvvy25-Apr-11 1:27 
GeneralRe: .NET Collections - Capacity Pin
Luc Pattyn25-Apr-11 1:33
sitebuilderLuc Pattyn25-Apr-11 1:33 
GeneralRe: .NET Collections - Capacity Pin
devvvy25-Apr-11 1:37
devvvy25-Apr-11 1:37 
GeneralRe: .NET Collections - Capacity [modified] Pin
devvvy25-Apr-11 1:52
devvvy25-Apr-11 1:52 
GeneralRe: .NET Collections - Capacity Pin
AspDotNetDev25-Apr-11 11:05
protectorAspDotNetDev25-Apr-11 11:05 
GeneralRe: .NET Collections - Capacity Pin
Jason Christian26-Apr-11 8:13
Jason Christian26-Apr-11 8:13 
AnswerRe: .NET Collections - Capacity Pin
AspDotNetDev25-Apr-11 11:10
protectorAspDotNetDev25-Apr-11 11:10 
GeneralRe: .NET Collections - Capacity Pin
Charvak Karpe28-Apr-11 3:47
Charvak Karpe28-Apr-11 3:47 
QuestionHow Can i Create A Class Library For MSACCESS database Connection Pin
Arunkumar.Koloth24-Apr-11 19:03
Arunkumar.Koloth24-Apr-11 19:03 
AnswerRe: How Can i Create A Class Library For MSACCESS database Connection Pin
Tarakeshwar Reddy24-Apr-11 19:13
professionalTarakeshwar Reddy24-Apr-11 19:13 
AnswerRe: How Can i Create A Class Library For MSACCESS database Connection Pin
Richard MacCutchan24-Apr-11 22:02
mveRichard MacCutchan24-Apr-11 22:02 
AnswerRe: How Can i Create A Class Library For MSACCESS database Connection Pin
PIEBALDconsult25-Apr-11 3:01
mvePIEBALDconsult25-Apr-11 3:01 
AnswerRe: How Can i Create A Class Library For MSACCESS database Connection Pin
ambarishtv28-Apr-11 6:27
ambarishtv28-Apr-11 6:27 
QuestionListBox.PreferredSize.Width interesting event Pin
msn9224-Apr-11 4:33
msn9224-Apr-11 4:33 
AnswerRe: ListBox.PreferredSize.Width interesting event Pin
DaveyM6924-Apr-11 12:30
professionalDaveyM6924-Apr-11 12:30 
QuestionArray Pin
messages23-Apr-11 1:40
messages23-Apr-11 1:40 

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.