Click here to Skip to main content
15,914,413 members
Home / Discussions / C#
   

C#

 
GeneralRe: Count specified character Pin
M Riaz Bashir28-Nov-06 22:37
M Riaz Bashir28-Nov-06 22:37 
AnswerRe: Count specified character Pin
Nader Elshehabi28-Nov-06 22:30
Nader Elshehabi28-Nov-06 22:30 
GeneralRe: Count specified character Pin
M Riaz Bashir28-Nov-06 22:39
M Riaz Bashir28-Nov-06 22:39 
AnswerRe: Count specified character Pin
Guffa28-Nov-06 23:44
Guffa28-Nov-06 23:44 
GeneralRe: Count specified character Pin
Rohit Pandhi28-Nov-06 23:47
Rohit Pandhi28-Nov-06 23:47 
GeneralRe: Count specified character Pin
Guffa29-Nov-06 0:41
Guffa29-Nov-06 0:41 
QuestionRe: Count specified character Pin
Martin#28-Nov-06 23:50
Martin#28-Nov-06 23:50 
AnswerRe: Count specified character Pin
Guffa29-Nov-06 0:36
Guffa29-Nov-06 0:36 
Martin# wrote:
This means Memory, or not?


Yes. It also means objects that needs to be garbage collected. Not very expensive, as short lived objects are handled rather efficiently, but still.

Martin# wrote:
Do you know if it's also faster? (performance profiling)


Yes. Looping through the characters is the fastest and most efficient way of doing it. Any other method will also be looping through all the characters, and additionally create objects from what they find.


---
b { font-weight: normal; }

GeneralRe: Count specified character Pin
Martin#29-Nov-06 0:49
Martin#29-Nov-06 0:49 
AnswerRe: Count specified character Pin
Nidhi.s29-Nov-06 2:46
Nidhi.s29-Nov-06 2:46 
QuestionRunning program immediately after installation finishes Pin
pkt3028-Nov-06 22:12
pkt3028-Nov-06 22:12 
AnswerRe: Running program immediately after installation finishes Pin
Rohit Pandhi28-Nov-06 23:51
Rohit Pandhi28-Nov-06 23:51 
QuestionHow can we open the database exclusively? Pin
liviucatrina28-Nov-06 21:59
liviucatrina28-Nov-06 21:59 
QuestionProblem with updating a dataset through a textbox Pin
iakob28-Nov-06 21:48
iakob28-Nov-06 21:48 
AnswerRe: Problem with updating a dataset through a textbox Pin
Nader Elshehabi28-Nov-06 23:46
Nader Elshehabi28-Nov-06 23:46 
GeneralRe: Problem with updating a dataset through a textbox Pin
iakob29-Nov-06 2:05
iakob29-Nov-06 2:05 
GeneralRe: Problem with updating a dataset through a textbox Pin
Nader Elshehabi29-Nov-06 4:38
Nader Elshehabi29-Nov-06 4:38 
GeneralRe: Problem with updating a dataset through a textbox Pin
iakob29-Nov-06 23:14
iakob29-Nov-06 23:14 
Questionerror: class not registered Pin
lawscom28-Nov-06 21:39
lawscom28-Nov-06 21:39 
AnswerRe: error: class not registered Pin
Colin Angus Mackay28-Nov-06 22:11
Colin Angus Mackay28-Nov-06 22:11 
QuestionAutocomplete Textbox Pin
PaulaM28-Nov-06 20:37
PaulaM28-Nov-06 20:37 
AnswerRe: Autocomplete Textbox Pin
Nader Elshehabi28-Nov-06 22:43
Nader Elshehabi28-Nov-06 22:43 
QuestionLDAP DisplayName ?? Pin
quiteSmart28-Nov-06 20:09
quiteSmart28-Nov-06 20:09 
GeneralRe: LDAP DisplayName ?? Pin
Eduard Keilholz28-Nov-06 20:28
Eduard Keilholz28-Nov-06 20:28 
GeneralRe: LDAP DisplayName ?? Pin
quiteSmart28-Nov-06 20:42
quiteSmart28-Nov-06 20:42 

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.