Click here to Skip to main content
15,920,005 members
Home / Discussions / C#
   

C#

 
QuestionGetting Tasks Pin
M. J. Jaya Chitra3-Jun-07 19:02
M. J. Jaya Chitra3-Jun-07 19:02 
AnswerRe: Getting Tasks Pin
mav.northwind3-Jun-07 19:10
mav.northwind3-Jun-07 19:10 
AnswerRe: Getting Tasks Pin
deepan600403-Jun-07 19:10
deepan600403-Jun-07 19:10 
QuestionRe: Getting Tasks Pin
M. J. Jaya Chitra3-Jun-07 19:21
M. J. Jaya Chitra3-Jun-07 19:21 
QuestionRun time callable wrapper? Pin
Ron.S3-Jun-07 18:29
Ron.S3-Jun-07 18:29 
AnswerRe: Run time callable wrapper? Pin
mav.northwind3-Jun-07 19:11
mav.northwind3-Jun-07 19:11 
QuestionAny difference between returning an object and changing an object passed into a static function? [modified] Pin
xdavidx3-Jun-07 16:47
xdavidx3-Jun-07 16:47 
AnswerRe: Any difference between returning an object and changing an object passed into a static function? Pin
Christian Graus3-Jun-07 17:09
protectorChristian Graus3-Jun-07 17:09 
Any concerns you may have remain the same in either case, ultimately I'd go with the second for clarity, but so long as it's all running in the same thread, which it is here, I don't see any thread safety concerns. The second approach does allow the method to create the object whenever it likes, the first means it always exists.

The first would be better represented with the out keyword, seeing as you expect the value to be assigned, and not just read. Stupid C# doesn't have const, but you can make your code clear by using the out keyword.


Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

Questioncharecter input system function Pin
sonavi3-Jun-07 14:48
sonavi3-Jun-07 14:48 
AnswerRe: charecter input system function Pin
Christian Graus3-Jun-07 14:59
protectorChristian Graus3-Jun-07 14:59 
QuestionSave PDF file as image Pin
There is always the way to do it, but I don't know3-Jun-07 14:22
There is always the way to do it, but I don't know3-Jun-07 14:22 
AnswerRe: Save PDF file as image Pin
xibeifeijian3-Jun-07 14:35
xibeifeijian3-Jun-07 14:35 
AnswerRe: Save PDF file as image Pin
Christian Graus3-Jun-07 14:46
protectorChristian Graus3-Jun-07 14:46 
QuestionDetour 2.1 with C# Pin
xpir3-Jun-07 12:49
xpir3-Jun-07 12:49 
AnswerRe: Detour 2.1 with C# Pin
Christian Graus3-Jun-07 12:57
protectorChristian Graus3-Jun-07 12:57 
Question"Main" method Pin
SPRC3-Jun-07 8:35
SPRC3-Jun-07 8:35 
AnswerRe: "Main" method Pin
Christian Graus3-Jun-07 11:23
protectorChristian Graus3-Jun-07 11:23 
QuestionLoged in user Information? Pin
Gul_#3-Jun-07 8:09
Gul_#3-Jun-07 8:09 
AnswerRe: Loged in user Information? Pin
andre_swnpl3-Jun-07 20:08
andre_swnpl3-Jun-07 20:08 
QuestionWeb application Pin
mushy3-Jun-07 7:27
mushy3-Jun-07 7:27 
AnswerRe: Web application Pin
Christian Graus3-Jun-07 11:25
protectorChristian Graus3-Jun-07 11:25 
Questionstring class handling.... aligment etc... Pin
Arish rivlin3-Jun-07 5:48
Arish rivlin3-Jun-07 5:48 
AnswerRe: string class handling.... aligment etc... Pin
Luc Pattyn3-Jun-07 5:59
sitebuilderLuc Pattyn3-Jun-07 5:59 
Questionc# - protected and protected internal Pin
jon-803-Jun-07 5:18
professionaljon-803-Jun-07 5:18 
AnswerRe: c# - protected and protected internal Pin
WillemM3-Jun-07 6:02
WillemM3-Jun-07 6:02 

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.