Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Devexpress Row Select Pin
Msdx4526-Aug-13 15:49
Msdx4526-Aug-13 15:49 
GeneralRe: C# Devexpress Row Select Pin
Jason Gleim27-Aug-13 4:52
professionalJason Gleim27-Aug-13 4:52 
GeneralRe: C# Devexpress Row Select Pin
Msdx4531-Aug-13 12:53
Msdx4531-Aug-13 12:53 
QuestionDownload multiple files Pin
cdpsource25-Aug-13 20:55
cdpsource25-Aug-13 20:55 
AnswerRe: Download multiple files Pin
Bernhard Hiller25-Aug-13 21:04
Bernhard Hiller25-Aug-13 21:04 
GeneralRe: Download multiple files Pin
harold aptroot25-Aug-13 21:59
harold aptroot25-Aug-13 21:59 
QuestionInitializing a Class Property Pin
s.leveel25-Aug-13 9:24
s.leveel25-Aug-13 9:24 
AnswerRe: Initializing a Class Property Pin
BillWoodruff25-Aug-13 13:40
professionalBillWoodruff25-Aug-13 13:40 
Your function LoadDouble is a contract to return a boolean value, when called; you don't show what you do with that boolean value.

The fact that .NET lets you "get away with" calling the function without doing anything with the boolean result, that you can compile a call to "LoadDouble(lines, "LOA", out Robot.LOA);" without using the boolean result, without error, is, imho, a violation of the whole spirit of a strictly-typed language. And, it's just poor programming.

Your function requires, as its last parameter, a pointer to a variable of Type Double declared with 'out: 'Result. The compiler will enforce that requirement.

Your function promises that its 'Result parameter is passed a pointer to a variable of Type Double declared with 'out: anything in the function that modifies the value of 'Result modifies the value of the external variable you passed in.

So when your function returns, you have two "results:" one's a "nameless" boolean, which, in this case, you are not using, and the other is the possibly modified value of Robert.LOA type Double variable.

There's not enough information here about where you are trying to achieve to say much more, but my sense is that if you are asking a (implied) question like, "I don't know what to use in the out," then you need to study the fundamentals of .NET programming, and the nature of function calls, and the use of 'out, and 'ref to return modified values to variables external to a function's scope.

I also suggest you post this type of question on the C# Q&A forum, which is more appropriate.

good luck, Bill

~
“This isn't right; this isn't even wrong." Wolfgang Pauli, commenting on a physics paper submitted for a journal

RantRe: Initializing a Class Property Pin
Pete O'Hanlon25-Aug-13 21:29
mvePete O'Hanlon25-Aug-13 21:29 
AnswerRe: Initializing a Class Property Pin
Bernhard Hiller25-Aug-13 21:12
Bernhard Hiller25-Aug-13 21:12 
QuestionHow to bind SQL date to RadHtmlChart control? Pin
Member 1023043024-Aug-13 22:13
Member 1023043024-Aug-13 22:13 
AnswerRe: How to bind SQL date to RadHtmlChart control? Pin
Mycroft Holmes25-Aug-13 0:53
professionalMycroft Holmes25-Aug-13 0:53 
QuestionHow to change BG color of tree node on click event Pin
rfresh24-Aug-13 6:51
rfresh24-Aug-13 6:51 
AnswerRe: How to change BG color of tree node on click event Pin
Mycroft Holmes24-Aug-13 13:37
professionalMycroft Holmes24-Aug-13 13:37 
GeneralRe: How to change BG color of tree node on click event Pin
rfresh24-Aug-13 16:07
rfresh24-Aug-13 16:07 
GeneralRe: How to change BG color of tree node on click event Pin
rfresh24-Aug-13 18:16
rfresh24-Aug-13 18:16 
GeneralRe: How to change BG color of tree node on click event Pin
rfresh24-Aug-13 18:20
rfresh24-Aug-13 18:20 
AnswerRe: How to change BG color of tree node on click event Pin
BillWoodruff24-Aug-13 14:40
professionalBillWoodruff24-Aug-13 14:40 
GeneralRe: How to change BG color of tree node on click event Pin
rfresh24-Aug-13 16:16
rfresh24-Aug-13 16:16 
GeneralRe: How to change BG color of tree node on click event Pin
BillWoodruff24-Aug-13 21:19
professionalBillWoodruff24-Aug-13 21:19 
GeneralRe: How to change BG color of tree node on click event Pin
rfresh25-Aug-13 5:45
rfresh25-Aug-13 5:45 
QuestionAdded 'Menu' to VS 2012 Express toolbox but its disabled Pin
rfresh23-Aug-13 16:30
rfresh23-Aug-13 16:30 
Questionsettings.settings property is read-only? Pin
rfresh23-Aug-13 10:11
rfresh23-Aug-13 10:11 
AnswerRe: settings.settings property is read-only? Pin
BillWoodruff23-Aug-13 14:23
professionalBillWoodruff23-Aug-13 14:23 
GeneralRe: settings.settings property is read-only? Pin
rfresh23-Aug-13 14:35
rfresh23-Aug-13 14:35 

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.