Click here to Skip to main content
15,913,722 members
Home / Discussions / C#
   

C#

 
AnswerRe: Open a text file in Notepad Pin
Luc Pattyn2-Dec-09 1:14
sitebuilderLuc Pattyn2-Dec-09 1:14 
GeneralRe: Open a text file in Notepad Pin
Hardus Lombaard20-Jul-10 22:09
Hardus Lombaard20-Jul-10 22:09 
Questiontruncate all data tables Pin
akram30021-Dec-09 20:33
akram30021-Dec-09 20:33 
AnswerRe: truncate all data tables Pin
dan!sh 1-Dec-09 20:44
professional dan!sh 1-Dec-09 20:44 
GeneralRe: truncate all data tables Pin
akram30021-Dec-09 23:04
akram30021-Dec-09 23:04 
QuestionProxy Classes - Copy/Paste Pre-compiler Pin
Iain Wiseman1-Dec-09 19:09
Iain Wiseman1-Dec-09 19:09 
AnswerRe: Proxy Classes - Copy/Paste Pre-compiler Pin
dan!sh 1-Dec-09 20:04
professional dan!sh 1-Dec-09 20:04 
GeneralRe: Proxy Classes - Copy/Paste Pre-compiler Pin
Iain Wiseman1-Dec-09 20:17
Iain Wiseman1-Dec-09 20:17 
GeneralRe: Proxy Classes - Copy/Paste Pre-compiler Pin
dan!sh 1-Dec-09 20:27
professional dan!sh 1-Dec-09 20:27 
GeneralRe: Proxy Classes - Copy/Paste Pre-compiler Pin
Dave Kreskowiak2-Dec-09 1:09
mveDave Kreskowiak2-Dec-09 1:09 
QuestionSelecting from datatable Pin
myinstincts1-Dec-09 18:17
myinstincts1-Dec-09 18:17 
AnswerRe: Selecting from datatable Pin
Giorgi Dalakishvili1-Dec-09 18:56
mentorGiorgi Dalakishvili1-Dec-09 18:56 
AnswerRe: Selecting from datatable Pin
dan!sh 1-Dec-09 19:07
professional dan!sh 1-Dec-09 19:07 
AnswerRe: Selecting from datatable Pin
Anurag Gandhi1-Dec-09 19:58
professionalAnurag Gandhi1-Dec-09 19:58 
Questionout of memory exception Pin
eswar pothula1-Dec-09 17:57
eswar pothula1-Dec-09 17:57 
AnswerRe: out of memory exception Pin
Saksida Bojan1-Dec-09 19:18
Saksida Bojan1-Dec-09 19:18 
Answerunreadable Pin
Luc Pattyn2-Dec-09 1:16
sitebuilderLuc Pattyn2-Dec-09 1:16 
QuestionReally need help with platform invoke Lotus Notes API in C# Pin
senorAli331-Dec-09 16:27
senorAli331-Dec-09 16:27 
AnswerRe: Really need help with platform invoke Lotus Notes API in C# Pin
Luc Pattyn1-Dec-09 16:51
sitebuilderLuc Pattyn1-Dec-09 16:51 
QuestionMulticast Delegate using MethodInfo Pin
hobbel2221-Dec-09 12:29
hobbel2221-Dec-09 12:29 
AnswerRe: Multicast Delegate using MethodInfo Pin
N a v a n e e t h1-Dec-09 17:04
N a v a n e e t h1-Dec-09 17:04 
GeneralRe: Multicast Delegate using MethodInfo Pin
hobbel2221-Dec-09 23:50
hobbel2221-Dec-09 23:50 
QuestionIs their a better way than using the Try/Catch statement in this source? Pin
venomation1-Dec-09 9:07
venomation1-Dec-09 9:07 
AnswerRe: Is their a better way than using the Try/Catch statement in this source? Pin
OriginalGriff1-Dec-09 9:15
mveOriginalGriff1-Dec-09 9:15 
Try doing a safe cast:
Xbox xb = prod as Xbox;
if (xb != null)
   {
   ...
   }

You could also use
if (prod is Xbox)
   {
   ...
   }

but the "as" cast will cope with nulls better.


[edit]Oops! put the <pre> tag in teh wrong place - fixed[/edit]

No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.

This message is made of fully recyclable Zeros and Ones

"Rumour has it that if you play Microsoft CDs backwards you will hear Satanic messages.Worse still, is that if you play them forwards they will install Windows"

GeneralRe: Is their a better way than using the Try/Catch statement in this source? Pin
venomation1-Dec-09 9:24
venomation1-Dec-09 9:24 

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.