Click here to Skip to main content
15,913,854 members
Home / Discussions / C#
   

C#

 
GeneralRe: MCP C# 2.0 Pin
Blumen7-May-07 20:04
Blumen7-May-07 20:04 
AnswerRe: MCP C# 2.0 Pin
Nouman Bhatti7-May-07 18:54
Nouman Bhatti7-May-07 18:54 
GeneralRe: MCP C# 2.0 Pin
Blumen7-May-07 20:05
Blumen7-May-07 20:05 
AnswerRe: MCP C# 2.0 Pin
Sandeep Akhare7-May-07 19:36
Sandeep Akhare7-May-07 19:36 
GeneralRe: MCP C# 2.0 Pin
Blumen7-May-07 20:07
Blumen7-May-07 20:07 
GeneralRe: MCP C# 2.0 Pin
Christian Graus7-May-07 20:14
protectorChristian Graus7-May-07 20:14 
GeneralRe: MCP C# 2.0 Pin
Sandeep Akhare7-May-07 20:15
Sandeep Akhare7-May-07 20:15 
QuestionIL DynamicMethod question - Boxing Pin
Luke Murray7-May-07 17:20
Luke Murray7-May-07 17:20 
Hey all I have dynamic method that get a type passed in. how do I use that param to box the object. So...
<br />
DynamicMethod dynamnicGet = new DynamicMethod("DynamicGet", typeof(object), new Type[] { typeof(object), typeof(Type) }, typeof(object));<br />
ILGenerator il = dynamnicGet.GetILGenerator();<br />
il.Emit(OpCodes.Ldarg_0); // load the source object onto the stack<br />
il.Emit(OpCodes.Callvirt, methodInfo); // call the method<br />
il.Emit(OpCodes.Ldarg_1); // load the type onto the stack<br />
// Now I want to box it the return type to the param type<br />
// Can not use il.Emit(OpCodes.Box, ) because I do not have the type in c#, it is in the IL<br />
il.Emit(OpCodes.Ret); // return<br />


Hope that makes sense. Any ideas anyone?

Thanks,
Luke
QuestionPivotTable Pin
phantanagu7-May-07 16:59
phantanagu7-May-07 16:59 
AnswerRe: PivotTable Pin
PIEBALDconsult7-May-07 17:20
mvePIEBALDconsult7-May-07 17:20 
AnswerRe: PivotTable Pin
Pete O'Hanlon7-May-07 22:19
mvePete O'Hanlon7-May-07 22:19 
QuestionOk simple problem Pin
Michael1017-May-07 16:06
Michael1017-May-07 16:06 
AnswerRe: Ok simple problem Pin
Arun.Immanuel7-May-07 16:11
Arun.Immanuel7-May-07 16:11 
GeneralRe: Ok simple problem Pin
Michael1017-May-07 16:13
Michael1017-May-07 16:13 
GeneralRe: Ok simple problem Pin
Muammar©7-May-07 19:27
Muammar©7-May-07 19:27 
AnswerRe: Ok simple problem Pin
PIEBALDconsult7-May-07 16:27
mvePIEBALDconsult7-May-07 16:27 
GeneralRe: Ok simple problem Pin
Vikram A Punathambekar7-May-07 20:50
Vikram A Punathambekar7-May-07 20:50 
AnswerRe: Ok simple problem Pin
soneliso7-May-07 23:27
soneliso7-May-07 23:27 
QuestionUser control problem Pin
Duong Tien Nam7-May-07 15:34
Duong Tien Nam7-May-07 15:34 
AnswerRe: User control problem Pin
Martin#7-May-07 22:49
Martin#7-May-07 22:49 
QuestionHow to select a particular Visio shape? [modified] Pin
asithabk7-May-07 14:54
asithabk7-May-07 14:54 
Questionarticle on purchasing system Pin
balanjingot7-May-07 14:25
balanjingot7-May-07 14:25 
AnswerRe: article on purchasing system Pin
Dave Kreskowiak7-May-07 15:17
mveDave Kreskowiak7-May-07 15:17 
GeneralRe: article on purchasing system Pin
Christian Graus7-May-07 20:21
protectorChristian Graus7-May-07 20:21 
GeneralRe: article on purchasing system Pin
Dave Kreskowiak8-May-07 2:05
mveDave Kreskowiak8-May-07 2:05 

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.