Click here to Skip to main content
15,867,686 members
Home / Discussions / C#
   

C#

 
GeneralRe: problem in restoring mysql database Pin
altafmohd15-Apr-12 1:19
altafmohd15-Apr-12 1:19 
AnswerRe: problem in restoring mysql database Pin
Eddy Vluggen15-Apr-12 1:27
professionalEddy Vluggen15-Apr-12 1:27 
AnswerRe: problem in restoring mysql database Pin
Luc Pattyn15-Apr-12 3:19
sitebuilderLuc Pattyn15-Apr-12 3:19 
GeneralRe: problem in restoring mysql database Pin
altafmohd15-Apr-12 5:04
altafmohd15-Apr-12 5:04 
AnswerRe: problem in restoring mysql database Pin
Bernhard Hiller15-Apr-12 21:18
Bernhard Hiller15-Apr-12 21:18 
QuestionHow well do you know your TryParse()? Pin
Ravi Bhavnani14-Apr-12 10:11
professionalRavi Bhavnani14-Apr-12 10:11 
AnswerRe: How well do you know your TryParse()? Pin
Alan N14-Apr-12 10:56
Alan N14-Apr-12 10:56 
GeneralRe: How well do you know your TryParse()? Pin
Ravi Bhavnani14-Apr-12 11:15
professionalRavi Bhavnani14-Apr-12 11:15 
Alan N wrote:
the out keyword requires that the variable passed as the argument is definitely assigned by the method
Yes, absolutely.  And I was hoping TryParse() would assign the incoming value of foo when the parse failed.  When it failed to do so, I decided to write my own SafeTryParse() implementation that would do just that, only to be chastised by the compiler - an out parameter is always assumed to be uninitialized and therefore its value can't be used. Smile | :)

/ravi
My new year resolution: 2048 x 1536
Home | Articles | My .NET bits | Freeware
ravib(at)ravib(dot)com

GeneralRe: How well do you know your TryParse()? Pin
Alan N14-Apr-12 11:29
Alan N14-Apr-12 11:29 
AnswerRe: How well do you know your TryParse()? Pin
Ravi Bhavnani14-Apr-12 11:34
professionalRavi Bhavnani14-Apr-12 11:34 
GeneralRe: How well do you know your TryParse()? Pin
Alan N14-Apr-12 12:56
Alan N14-Apr-12 12:56 
GeneralRe: How well do you know your TryParse()? Pin
Ravi Bhavnani14-Apr-12 13:00
professionalRavi Bhavnani14-Apr-12 13:00 
AnswerRe: How well do you know your TryParse()? Pin
Luc Pattyn14-Apr-12 13:40
sitebuilderLuc Pattyn14-Apr-12 13:40 
GeneralRe: How well do you know your TryParse()? Pin
Ravi Bhavnani14-Apr-12 13:51
professionalRavi Bhavnani14-Apr-12 13:51 
GeneralRe: How well do you know your TryParse()? Pin
PIEBALDconsult15-Apr-12 4:20
mvePIEBALDconsult15-Apr-12 4:20 
AnswerRe: How well do you know your TryParse()? Pin
PIEBALDconsult14-Apr-12 19:03
mvePIEBALDconsult14-Apr-12 19:03 
GeneralRe: How well do you know your TryParse()? Pin
Eddy Vluggen15-Apr-12 0:43
professionalEddy Vluggen15-Apr-12 0:43 
GeneralRe: How well do you know your TryParse()? Pin
DaveyM6915-Apr-12 0:56
professionalDaveyM6915-Apr-12 0:56 
GeneralRe: How well do you know your TryParse()? Pin
PIEBALDconsult15-Apr-12 4:22
mvePIEBALDconsult15-Apr-12 4:22 
GeneralRe: How well do you know your TryParse()? Pin
Ravi Bhavnani15-Apr-12 5:07
professionalRavi Bhavnani15-Apr-12 5:07 
AnswerRe: How well do you know your TryParse()? Pin
Luc Pattyn15-Apr-12 3:12
sitebuilderLuc Pattyn15-Apr-12 3:12 
GeneralRe: How well do you know your TryParse()? Pin
PIEBALDconsult15-Apr-12 4:08
mvePIEBALDconsult15-Apr-12 4:08 
GeneralRe: How well do you know your TryParse()? Pin
Luc Pattyn15-Apr-12 4:55
sitebuilderLuc Pattyn15-Apr-12 4:55 
GeneralRe: How well do you know your TryParse()? Pin
Ravi Bhavnani15-Apr-12 5:07
professionalRavi Bhavnani15-Apr-12 5:07 
GeneralRe: How well do you know your TryParse()? Pin
Ravi Bhavnani15-Apr-12 5:04
professionalRavi Bhavnani15-Apr-12 5:04 

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.