Click here to Skip to main content
15,887,346 members
Home / Discussions / C#
   

C#

 
GeneralRe: Not Refresh combo box item list Or Just say Not clear itemlist Pin
Member 1066930115-Jun-14 1:00
Member 1066930115-Jun-14 1:00 
GeneralRe: Not Refresh combo box item list Or Just say Not clear itemlist Pin
OriginalGriff15-Jun-14 1:07
mveOriginalGriff15-Jun-14 1:07 
GeneralRe: Not Refresh combo box item list Or Just say Not clear itemlist Pin
Mycroft Holmes15-Jun-14 14:02
professionalMycroft Holmes15-Jun-14 14:02 
AnswerRe: i set combobox data source value and cleare item also but just add a new item combo list is add new list in old list my code is Pin
AshishvermaMCA15-Jun-14 20:25
AshishvermaMCA15-Jun-14 20:25 
Question[C #] Doubt How to make a chat list using Network API Pin
Member 916415114-Jun-14 13:00
Member 916415114-Jun-14 13:00 
AnswerRe: [C #] Doubt How to make a chat list using Network API Pin
Wes Aday14-Jun-14 13:30
professionalWes Aday14-Jun-14 13:30 
QuestionMemory performance and foreach vs for Pin
Super Lloyd14-Jun-14 6:57
Super Lloyd14-Jun-14 6:57 
AnswerRe: Memory performance and foreach vs for Pin
Kornfeld Eliyahu Peter14-Jun-14 9:26
professionalKornfeld Eliyahu Peter14-Jun-14 9:26 
Any foreach loop has two extra variables on the stack, so while running foreach loop takes more memory and may be a bit slower...
The GetEnumerator problem is exist only if your enumerator is a class. In the .NET System.Collections.Generic namespace all collections (List<T>, Dictionary<TKey, TValue>)) implementing enumerator as a structure so it does not allocate memory on the heap, but returns a reference to an existing object...
If you want to reduce the memory peak and GC runs, try to use standard collections or build yours along the same line...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)


modified 14-Jun-14 16:20pm.

GeneralRe: Memory performance and foreach vs for Pin
harold aptroot14-Jun-14 9:33
harold aptroot14-Jun-14 9:33 
GeneralRe: Memory performance and foreach vs for Pin
Kornfeld Eliyahu Peter14-Jun-14 10:21
professionalKornfeld Eliyahu Peter14-Jun-14 10:21 
GeneralRe: Memory performance and foreach vs for Pin
PIEBALDconsult14-Jun-14 18:46
mvePIEBALDconsult14-Jun-14 18:46 
GeneralRe: Memory performance and foreach vs for Pin
Super Lloyd14-Jun-14 19:49
Super Lloyd14-Jun-14 19:49 
GeneralRe: Memory performance and foreach vs for Pin
PIEBALDconsult15-Jun-14 4:32
mvePIEBALDconsult15-Jun-14 4:32 
GeneralRe: Memory performance and foreach vs for Pin
Super Lloyd15-Jun-14 5:07
Super Lloyd15-Jun-14 5:07 
AnswerRe: Memory performance and foreach vs for Pin
V.15-Jun-14 21:07
professionalV.15-Jun-14 21:07 
GeneralRe: Memory performance and foreach vs for Pin
Super Lloyd15-Jun-14 22:42
Super Lloyd15-Jun-14 22:42 
GeneralRe: Memory performance and foreach vs for Pin
V.15-Jun-14 22:49
professionalV.15-Jun-14 22:49 
AnswerRe: Memory performance and foreach vs for Pin
BobJanova16-Jun-14 0:39
BobJanova16-Jun-14 0:39 
AnswerRe: Memory performance and foreach vs for Pin
jschell17-Jun-14 8:53
jschell17-Jun-14 8:53 
GeneralRe: Memory performance and foreach vs for Pin
LostTheMarbles17-Jun-14 23:35
professionalLostTheMarbles17-Jun-14 23:35 
Questionproblem using for() with datagrid - blank cell value Pin
Jassim Rahma14-Jun-14 0:03
Jassim Rahma14-Jun-14 0:03 
AnswerRe: problem using for() with datagrid - blank cell value Pin
Estys14-Jun-14 1:24
Estys14-Jun-14 1:24 
AnswerRe: problem using for() with datagrid - blank cell value Pin
Dave Kreskowiak14-Jun-14 5:07
mveDave Kreskowiak14-Jun-14 5:07 
GeneralRe: problem using for() with datagrid - blank cell value Pin
PIEBALDconsult14-Jun-14 18:49
mvePIEBALDconsult14-Jun-14 18:49 
GeneralRe: problem using for() with datagrid - blank cell value Pin
PIEBALDconsult14-Jun-14 18:57
mvePIEBALDconsult14-Jun-14 18:57 

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.