Click here to Skip to main content
15,891,951 members
Home / Discussions / C#
   

C#

 
QuestionDesign Form inside Form Pin
nelsonpaixao18-Jul-08 14:31
nelsonpaixao18-Jul-08 14:31 
AnswerRe: Design Form inside Form Pin
Luc Pattyn18-Jul-08 14:34
sitebuilderLuc Pattyn18-Jul-08 14:34 
GeneralRe: Design Form inside Form Pin
nelsonpaixao18-Jul-08 15:15
nelsonpaixao18-Jul-08 15:15 
QuestionHow does one get the name of a variable which is passed to a method? Pin
jeffb4218-Jul-08 12:42
jeffb4218-Jul-08 12:42 
GeneralRe: How does one get the name of a variable which is passed to a method? Pin
Mbah Dhaim18-Jul-08 13:03
Mbah Dhaim18-Jul-08 13:03 
GeneralRe: How does one get the name of a variable which is passed to a method? Pin
jeffb4218-Jul-08 13:19
jeffb4218-Jul-08 13:19 
AnswerRe: How does one get the name of a variable which is passed to a method? Pin
Luc Pattyn18-Jul-08 13:11
sitebuilderLuc Pattyn18-Jul-08 13:11 
GeneralRe: How does one get the name of a variable which is passed to a method? Pin
jeffb4218-Jul-08 13:24
jeffb4218-Jul-08 13:24 
Luc Pattyn wrote:
MyObject theObject=new MyObject("Paul");
MyObject anotherReference=theObject;

DumpObject(anotherReference);

Now which name would you want to get?
The only one you will be able to get is "Paul" provided it got stored somewhere *inside* the object.



With the above code, I'd want to get the string "anotherReference" inside of DumpObject(). If the code was DumpObject(theObject), I'd want to get the string "theObject" inside of DumpObject().




Luc Pattyn wrote:
It is however possible to get the name of the reference itself, using reflection.


Luc Pattyn wrote:
and through reflection should be able
to get at its name.


That's the part I'm not able to do.


Thanks though,

Jeff
AnswerRe: How does one get the name of a variable which is passed to a method? Pin
Guffa18-Jul-08 13:24
Guffa18-Jul-08 13:24 
GeneralRe: How does one get the name of a variable which is passed to a method? Pin
Luc Pattyn18-Jul-08 13:33
sitebuilderLuc Pattyn18-Jul-08 13:33 
JokeRe: How does one get the name of a variable which is passed to a method? Pin
PIEBALDconsult18-Jul-08 13:52
mvePIEBALDconsult18-Jul-08 13:52 
GeneralRe: How does one get the name of a variable which is passed to a method? Pin
Luc Pattyn18-Jul-08 14:06
sitebuilderLuc Pattyn18-Jul-08 14:06 
GeneralRe: How does one get the name of a variable which is passed to a method? Pin
jeffb4218-Jul-08 14:11
jeffb4218-Jul-08 14:11 
GeneralRe: How does one get the name of a variable which is passed to a method? Pin
Luc Pattyn18-Jul-08 14:17
sitebuilderLuc Pattyn18-Jul-08 14:17 
QuestionRe: How does one get the name of a variable which is passed to a method? Pin
nelsonpaixao18-Jul-08 15:17
nelsonpaixao18-Jul-08 15:17 
Questionhopefully simple problem with type casting Pin
auberondreaming18-Jul-08 12:02
auberondreaming18-Jul-08 12:02 
AnswerRe: hopefully simple problem with type casting Pin
Luc Pattyn18-Jul-08 12:09
sitebuilderLuc Pattyn18-Jul-08 12:09 
GeneralRe: hopefully simple problem with type casting Pin
auberondreaming18-Jul-08 12:19
auberondreaming18-Jul-08 12:19 
GeneralRe: hopefully simple problem with type casting Pin
Luc Pattyn18-Jul-08 12:47
sitebuilderLuc Pattyn18-Jul-08 12:47 
AnswerRe: hopefully simple problem with type casting Pin
Mbah Dhaim18-Jul-08 12:11
Mbah Dhaim18-Jul-08 12:11 
GeneralRe: hopefully simple problem with type casting Pin
auberondreaming18-Jul-08 12:15
auberondreaming18-Jul-08 12:15 
QuestionCreating remote process & StdOut Pin
Harkamal Singh18-Jul-08 8:27
Harkamal Singh18-Jul-08 8:27 
AnswerRe: Creating remote process & StdOut Pin
Luc Pattyn18-Jul-08 8:48
sitebuilderLuc Pattyn18-Jul-08 8:48 
GeneralRe: Creating remote process & StdOut Pin
Harkamal Singh18-Jul-08 21:43
Harkamal Singh18-Jul-08 21:43 
QuestionWeird error Pin
damianrda18-Jul-08 7:37
damianrda18-Jul-08 7:37 

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.