Click here to Skip to main content
16,005,121 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to solve delay in display of replaced text on a web page? How to reduce CPU usage which is caused due to 'foreach loop'? Pin
Bharat Jain29-Jan-09 20:42
Bharat Jain29-Jan-09 20:42 
GeneralRe: How to solve delay in display of replaced text on a web page? How to reduce CPU usage which is caused due to 'foreach loop'? Pin
S. Senthil Kumar29-Jan-09 21:50
S. Senthil Kumar29-Jan-09 21:50 
GeneralRe: How to solve delay in display of replaced text on a web page? How to reduce CPU usage which is caused due to 'foreach loop'? Pin
Bharat Jain29-Jan-09 22:43
Bharat Jain29-Jan-09 22:43 
GeneralRe: How to solve delay in display of replaced text on a web page? How to reduce CPU usage which is caused due to 'foreach loop'? Pin
svt gdwl30-Jan-09 3:22
svt gdwl30-Jan-09 3:22 
QuestionException throwing - Advice required Pin
Imtiaz Murtaza29-Jan-09 18:35
Imtiaz Murtaza29-Jan-09 18:35 
AnswerRe: Exception throwing - Advice required Pin
Karmendra Suthar29-Jan-09 19:09
Karmendra Suthar29-Jan-09 19:09 
GeneralRe: Exception throwing - Advice required Pin
N a v a n e e t h29-Jan-09 19:26
N a v a n e e t h29-Jan-09 19:26 
AnswerRe: Exception throwing - Advice required Pin
Vikram A Punathambekar29-Jan-09 19:13
Vikram A Punathambekar29-Jan-09 19:13 
Imtiaz Murtaza wrote:
So what you guys suggest me in such cases. Shall i continue to throw generic "Exception" or use InvalidOperationException ? Or is there better solution ?


Thumb rule, do not follow blindly: If the calling code needs to perform a special function on encountering this specific error situation, use a custom exception class. If you are simply logging the message, displaying a dialog to the user, etc, and the only thing that changes is the error message, use System.Exception.

Cheers,
Vıkram.

I've never ever worked anywhere where there has not been someone who given the choice I would not work with again. It's a job, you do your work, put up with the people you don't like, accept there are probably people there that don't like you a lot, and look forward to the weekends.
  - Josh Gray.

AnswerRe: Exception throwing - Advice required Pin
Bharat Jain29-Jan-09 19:22
Bharat Jain29-Jan-09 19:22 
AnswerRe: Exception throwing - Advice required Pin
Najmal29-Jan-09 22:16
Najmal29-Jan-09 22:16 
Questionjoin transaction Pin
devvvy29-Jan-09 14:39
devvvy29-Jan-09 14:39 
AnswerRe: join transaction Pin
N a v a n e e t h29-Jan-09 14:55
N a v a n e e t h29-Jan-09 14:55 
GeneralRe: join transaction Pin
devvvy29-Jan-09 15:00
devvvy29-Jan-09 15:00 
GeneralRe: join transaction Pin
N a v a n e e t h29-Jan-09 15:03
N a v a n e e t h29-Jan-09 15:03 
Questionhow much is java difficult?? Pin
Ali_10029-Jan-09 11:01
Ali_10029-Jan-09 11:01 
AnswerRe: how much is java difficult?? Pin
faehne29-Jan-09 11:08
faehne29-Jan-09 11:08 
AnswerRe: how much is java difficult?? Pin
PIEBALDconsult29-Jan-09 12:00
mvePIEBALDconsult29-Jan-09 12:00 
AnswerRe: how much is java difficult?? Pin
N a v a n e e t h29-Jan-09 14:38
N a v a n e e t h29-Jan-09 14:38 
GeneralRe: how much is java difficult?? Pin
PIEBALDconsult29-Jan-09 16:13
mvePIEBALDconsult29-Jan-09 16:13 
QuestionRe: how much is java difficult?? Pin
CPallini29-Jan-09 22:12
mveCPallini29-Jan-09 22:12 
AnswerRe: how much is java difficult?? Pin
Karmendra Suthar29-Jan-09 18:39
Karmendra Suthar29-Jan-09 18:39 
QuestionTrace output to command window. Pin
Member 232448329-Jan-09 10:22
Member 232448329-Jan-09 10:22 
AnswerRe: Trace output to command window. Pin
Wendelius29-Jan-09 10:28
mentorWendelius29-Jan-09 10:28 
GeneralRe: Trace output to command window. Pin
Member 232448329-Jan-09 10:33
Member 232448329-Jan-09 10:33 
GeneralRe: Trace output to command window. Pin
Wendelius29-Jan-09 10:39
mentorWendelius29-Jan-09 10:39 

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.