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

C#

 
AnswerRe: why memory is increasing in just a for loop? Pin
Pete O'Hanlon26-Feb-15 20:20
mvePete O'Hanlon26-Feb-15 20:20 
AnswerRe: why memory is increasing in just a for loop? Pin
OriginalGriff26-Feb-15 20:23
mveOriginalGriff26-Feb-15 20:23 
GeneralRe: why memory is increasing in just a for loop? Pin
Le@rner26-Feb-15 21:16
Le@rner26-Feb-15 21:16 
GeneralRe: why memory is increasing in just a for loop? Pin
OriginalGriff26-Feb-15 21:21
mveOriginalGriff26-Feb-15 21:21 
GeneralRe: why memory is increasing in just a for loop? Pin
Pete O'Hanlon26-Feb-15 22:24
mvePete O'Hanlon26-Feb-15 22:24 
GeneralRe: why memory is increasing in just a for loop? Pin
Le@rner27-Feb-15 0:22
Le@rner27-Feb-15 0:22 
GeneralRe: why memory is increasing in just a for loop? Pin
Pete O'Hanlon27-Feb-15 1:45
mvePete O'Hanlon27-Feb-15 1:45 
GeneralRe: why memory is increasing in just a for loop? Pin
F-ES Sitecore27-Feb-15 2:38
professionalF-ES Sitecore27-Feb-15 2:38 
dataGridView2.Rows[i].Cells[1].Value.ToString().Trim().Length == 0

Value.ToString() creates a copy of "Value". .Trim() then creates a copy of that. If you have a lot of data in Value you have it x3.

If Value is type "object" but you know it contains a string then do a cast rather than ToString, and for checking if something is empty use string.IsNullOrWhiteSpace rather than a trim and length check.

string.IsNullOrWhiteSpace((string)dataGridView2.Rows[i].Cells[1].Value)

Questionhow to continuously write text to a label in C# Pin
Member 1068390226-Feb-15 6:33
Member 1068390226-Feb-15 6:33 
AnswerRe: how to continuously write text to a label in C# Pin
manchanx26-Feb-15 7:52
professionalmanchanx26-Feb-15 7:52 
GeneralRe: how to continuously write text to a label in C# Pin
Member 1068390226-Feb-15 9:26
Member 1068390226-Feb-15 9:26 
AnswerRe: how to continuously write text to a label in C# Pin
HKHerron26-Feb-15 9:38
professionalHKHerron26-Feb-15 9:38 
GeneralRe: how to continuously write text to a label in C# Pin
Member 1068390226-Feb-15 10:07
Member 1068390226-Feb-15 10:07 
GeneralRe: how to continuously write text to a label in C# Pin
HKHerron26-Feb-15 10:20
professionalHKHerron26-Feb-15 10:20 
GeneralRe: how to continuously write text to a label in C# Pin
Member 1068390226-Feb-15 10:46
Member 1068390226-Feb-15 10:46 
AnswerRe: how to continuously write text to a label in C# Pin
Member 1068390226-Feb-15 11:09
Member 1068390226-Feb-15 11:09 
GeneralRe: how to continuously write text to a label in C# Pin
V.27-Feb-15 0:39
professionalV.27-Feb-15 0:39 
AnswerRe: how to continuously write text to a label in C# Pin
Member 857809327-Feb-15 9:07
Member 857809327-Feb-15 9:07 
GeneralRe: how to continuously write text to a label in C# Pin
Member 1068390227-Feb-15 11:36
Member 1068390227-Feb-15 11:36 
Questionc# Soap Web service header Pin
Info service26-Feb-15 5:36
Info service26-Feb-15 5:36 
QuestionConfused on method type Pin
Truck5326-Feb-15 3:58
Truck5326-Feb-15 3:58 
AnswerRe: Confused on method type Pin
OriginalGriff26-Feb-15 4:22
mveOriginalGriff26-Feb-15 4:22 
AnswerRe: Confused on method type Pin
manchanx26-Feb-15 5:09
professionalmanchanx26-Feb-15 5:09 
QuestionHow memory is allocated in .Net application Pin
Tridip Bhattacharjee26-Feb-15 2:56
professionalTridip Bhattacharjee26-Feb-15 2:56 
AnswerRe: How memory is allocated in .Net application Pin
OriginalGriff26-Feb-15 3:14
mveOriginalGriff26-Feb-15 3:14 

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.