Click here to Skip to main content
15,893,190 members
Home / Discussions / C#
   

C#

 
GeneralRe: ADO,Net Pin
Isaac Gordon25-Jun-09 23:10
Isaac Gordon25-Jun-09 23:10 
GeneralRe: ADO,Net Pin
Christian Graus25-Jun-09 23:45
protectorChristian Graus25-Jun-09 23:45 
GeneralRe: ADO,Net Pin
padmanabhan N25-Jun-09 20:46
padmanabhan N25-Jun-09 20:46 
GeneralRe: ADO,Net Pin
Christian Graus25-Jun-09 20:58
protectorChristian Graus25-Jun-09 20:58 
GeneralRe: ADO,Net Pin
Thomas Krojer25-Jun-09 21:21
Thomas Krojer25-Jun-09 21:21 
GeneralRe: ADO,Net Pin
Christian Graus25-Jun-09 21:22
protectorChristian Graus25-Jun-09 21:22 
QuestionHow get the post data in the web using API hook? Pin
Jeyakumarbics125-Jun-09 19:37
Jeyakumarbics125-Jun-09 19:37 
AnswerRe: How get the post data in the web using API hook? Pin
Henry Minute25-Jun-09 20:18
Henry Minute25-Jun-09 20:18 
QuestionError while reading XML using xmltextreader Pin
koolprasad200325-Jun-09 19:08
professionalkoolprasad200325-Jun-09 19:08 
AnswerRe: Error while reading XML using xmltextreader Pin
Christian Graus25-Jun-09 19:40
protectorChristian Graus25-Jun-09 19:40 
AnswerRe: Error while reading XML using xmltextreader Pin
N a v a n e e t h25-Jun-09 20:15
N a v a n e e t h25-Jun-09 20:15 
GeneralRe: Error while reading XML using xmltextreader Pin
Christian Graus25-Jun-09 21:02
protectorChristian Graus25-Jun-09 21:02 
QuestionQR barcode decoder problem. Pin
S K Y25-Jun-09 18:44
S K Y25-Jun-09 18:44 
AnswerRe: QR barcode decoder problem. Pin
Christian Graus25-Jun-09 18:49
protectorChristian Graus25-Jun-09 18:49 
GeneralRe: QR barcode decoder problem. Pin
S K Y25-Jun-09 19:26
S K Y25-Jun-09 19:26 
GeneralRe: QR barcode decoder problem. Pin
Christian Graus25-Jun-09 19:39
protectorChristian Graus25-Jun-09 19:39 
GeneralRe: QR barcode decoder problem. Pin
S K Y25-Jun-09 20:47
S K Y25-Jun-09 20:47 
GeneralRe: QR barcode decoder problem. Pin
Christian Graus25-Jun-09 20:58
protectorChristian Graus25-Jun-09 20:58 
GeneralRe: QR barcode decoder problem. Pin
Mycroft Holmes26-Jun-09 0:41
professionalMycroft Holmes26-Jun-09 0:41 
QuestionHow to get stack trace Pin
LiYS25-Jun-09 16:30
LiYS25-Jun-09 16:30 
AnswerRe: How to get stack trace Pin
Luc Pattyn25-Jun-09 16:33
sitebuilderLuc Pattyn25-Jun-09 16:33 
GeneralRe: How to get stack trace Pin
LiYS25-Jun-09 17:17
LiYS25-Jun-09 17:17 
QuestionAsk about OO Concept Pin
sky391325-Jun-09 14:32
sky391325-Jun-09 14:32 
AnswerRe: Ask about OO Concept Pin
Luc Pattyn25-Jun-09 14:48
sitebuilderLuc Pattyn25-Jun-09 14:48 
Hi,

welcome to CodeProject.

You could have found most of the answers yourself, by reading some of the documentation.
Here is a short reply:
1. new Exception(ex.Message) is non-sense, it is throwing away all information (inner exceptions, stack trace, whatever) and just keeping a one-line message.
2. simply catching an exception and throwing it again does not make much sense, you could as well not catch it in the first place.
3. the correct way to rethrow an exception is by just writing throw; which again only makes sense if you have more code in the catch block (e.g. logging something).
4. some classes have both a Close() and a Dispose() method, often one of these calls the other. Such details aren't very well documented, it helps to use this Reflector[^] tool which enables you to see a lot of internals of .NET classes.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.

AnswerRe: Ask about OO Concept Pin
N a v a n e e t h25-Jun-09 15:40
N a v a n e e t h25-Jun-09 15: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.