Click here to Skip to main content
14,935,580 members
Home / Discussions / C#
   

C#

 
AnswerRe: Application.Exit problem?? Pin
teejayem8-Aug-08 2:32
Memberteejayem8-Aug-08 2:32 
AnswerRe: Application.Exit problem?? Pin
Manas Bhardwaj8-Aug-08 2:37
professionalManas Bhardwaj8-Aug-08 2:37 
QuestionHow to Get HardWare Information from CPU like Temparature,Voltage,FanSpeed. code in .Net Pin
madhu5218-Aug-08 2:06
Membermadhu5218-Aug-08 2:06 
AnswerRe: How to Get HardWare Information from CPU like Temparature,Voltage,FanSpeed. code in .Net Pin
leppie8-Aug-08 2:21
Memberleppie8-Aug-08 2:21 
AnswerRe: How to Get HardWare Information from CPU like Temparature,Voltage,FanSpeed. code in .Net Pin
Mark Salsbery8-Aug-08 9:35
MemberMark Salsbery8-Aug-08 9:35 
QuestionGetting the names of members without using strings Pin
Nicholas Butler8-Aug-08 1:57
sitebuilderNicholas Butler8-Aug-08 1:57 
AnswerRe: Getting the names of members without using strings Pin
leppie8-Aug-08 2:19
Memberleppie8-Aug-08 2:19 
GeneralRe: Getting the names of members without using strings Pin
Nicholas Butler8-Aug-08 2:32
sitebuilderNicholas Butler8-Aug-08 2:32 
Thanks for replying leppie. I was hoping you might help.

I want to specify any member of a class in a way that the compiler can check. For instance, this is not acceptable because it will not work if you rename the field, or even "Find all references".

var fi = typeof( Class ).GetField( "Field" );


So, I thought I could use a lambda which I can pass as a delegate that the compiler can check. The code in the lambda must be just a call the the member you want to specify. The only way I can think of to get at the code is to look at the IL.

I may well be barking up the wrong tree, but I can't think of a neater way...

----------------------------------
Be excellent to each other Smile | :)

GeneralRe: Getting the names of members without using strings Pin
leppie8-Aug-08 2:41
Memberleppie8-Aug-08 2:41 
GeneralRe: Getting the names of members without using strings Pin
Nicholas Butler8-Aug-08 2:50
sitebuilderNicholas Butler8-Aug-08 2:50 
GeneralRe: Getting the names of members without using strings Pin
leppie8-Aug-08 3:36
Memberleppie8-Aug-08 3:36 
QuestionLaunch my program when pressing <ctrl 1=""></ctrl> Pin
anderslundsgard8-Aug-08 1:44
Memberanderslundsgard8-Aug-08 1:44 
AnswerRe: Launch my program when pressing Pin
J a a n s8-Aug-08 2:57
professionalJ a a n s8-Aug-08 2:57 
GeneralRe: Launch my program when pressing Pin
anderslundsgard8-Aug-08 3:25
Memberanderslundsgard8-Aug-08 3:25 
AnswerRe: Launch my program when pressing Pin
Guffa8-Aug-08 3:41
MemberGuffa8-Aug-08 3:41 
GeneralRe: Launch my program when pressing Pin
anderslundsgard8-Aug-08 20:21
Memberanderslundsgard8-Aug-08 20:21 
QuestionPowerpoint Automation with COM Object Lib. Pin
selcuks8-Aug-08 1:27
Memberselcuks8-Aug-08 1:27 
QuestionImage Processing In C# Pin
krinaljariwala8-Aug-08 1:27
Memberkrinaljariwala8-Aug-08 1:27 
AnswerRe: Image Processing In C# Pin
astanton19788-Aug-08 6:50
Memberastanton19788-Aug-08 6:50 
AnswerRe: Image Processing In C# Pin
Alan Balkany8-Aug-08 7:50
MemberAlan Balkany8-Aug-08 7:50 
Questionhyperthreading Pin
arkiboys8-Aug-08 1:13
Memberarkiboys8-Aug-08 1:13 
AnswerRe: hyperthreading Pin
leppie8-Aug-08 2:22
Memberleppie8-Aug-08 2:22 
AnswerRe: hyperthreading Pin
Mark Salsbery8-Aug-08 9:39
MemberMark Salsbery8-Aug-08 9:39 
QuestionReading a specific line in a pdf file Pin
Ofori Boadu8-Aug-08 0:11
MemberOfori Boadu8-Aug-08 0:11 
AnswerRe: Reading a specific line in a pdf file Pin
Manas Bhardwaj8-Aug-08 0:24
professionalManas Bhardwaj8-Aug-08 0: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.