Click here to Skip to main content
15,991,071 members
Home / Discussions / C#
   

C#

 
GeneralRe: null strings Pin
Erik Doernenburg11-Dec-02 2:54
Erik Doernenburg11-Dec-02 2:54 
GeneralRe: null strings Pin
grv57513-Dec-02 4:19
grv57513-Dec-02 4:19 
GeneralRichtextBox Pin
trones9-Dec-02 5:48
trones9-Dec-02 5:48 
GeneralRe: RichtextBox Pin
sammyh9-Dec-02 10:09
sammyh9-Dec-02 10:09 
Generalsimple drivers without recompiling Pin
Anonymous9-Dec-02 5:03
Anonymous9-Dec-02 5:03 
GeneralRe: simple drivers without recompiling Pin
Daniel Turini9-Dec-02 5:30
Daniel Turini9-Dec-02 5:30 
GeneralRe: simple drivers without recompiling Pin
Anonymous9-Dec-02 6:14
Anonymous9-Dec-02 6:14 
GeneralReflection and Delegates Pin
wayward9-Dec-02 4:09
wayward9-Dec-02 4:09 
Is it possible given two strings (class name and method name) to dynamically create an instance of the class and get a delegate pointing to the method?

For example (almostcode):

<br />
public delegate void ActionHandler(Message m);<br />
<br />
string className = <br />
    "Exony.Runtime.StateServices.Test.States.Stopped";<br />
<br />
string actionName = "OnStart";<br />
<br />
Type t = Type.GetType(className);<br />
<br />
object instance = t.Assembly.CreateInstance(t.FullName);<br />
<br />
ActionHandler handler = ?CREATE_DELEGATE?(instance, actionName);<br />
<br />
// Add the handler to an event map.<br />
fsm.Handlers += handler;<br />
<br />


Thanks in advance,

James.
GeneralRe: Reflection and Delegates Pin
wayward9-Dec-02 4:48
wayward9-Dec-02 4:48 
GeneralNew line in TextBox Pin
ValentinR9-Dec-02 2:03
ValentinR9-Dec-02 2:03 
GeneralRe: New line in TextBox Pin
trones9-Dec-02 5:50
trones9-Dec-02 5:50 
GeneralRe: New line in TextBox Pin
ValentinR9-Dec-02 20:59
ValentinR9-Dec-02 20:59 
QuestionTCP-Network Connection available? Pin
harzer Teddy9-Dec-02 1:06
harzer Teddy9-Dec-02 1:06 
AnswerI guess you need an IP-Adress of the Computer Pin
Teddy Sohnrey9-Dec-02 3:45
sussTeddy Sohnrey9-Dec-02 3:45 
GeneralABOUT MARSHAL IN MC++ Pin
novachen8-Dec-02 19:24
novachen8-Dec-02 19:24 
GeneralRe: ABOUT MARSHAL IN MC++ Pin
David Stone9-Dec-02 8:46
sitebuilderDavid Stone9-Dec-02 8:46 
GeneralRe: ABOUT MARSHAL IN MC++ Pin
Nick Parker9-Dec-02 9:52
protectorNick Parker9-Dec-02 9:52 
GeneralRe: ABOUT MARSHAL IN MC++ Pin
novachen9-Dec-02 14:39
novachen9-Dec-02 14:39 
GeneralRe: ABOUT MARSHAL IN MC++ Pin
Nick Parker9-Dec-02 16:23
protectorNick Parker9-Dec-02 16:23 
GeneralSending Mail With Attachment With Web Service Problem Pin
yccheok8-Dec-02 18:03
yccheok8-Dec-02 18:03 
GeneralRe: Sending Mail With Attachment With Web Service Problem Pin
David Stone9-Dec-02 8:44
sitebuilderDavid Stone9-Dec-02 8:44 
GeneralWeb Cam Handle Still Hold By WMEncoder After Stop Called Pin
yccheok8-Dec-02 17:46
yccheok8-Dec-02 17:46 
GeneralHalt At Socket.Receive() Statement Pin
yccheok8-Dec-02 16:50
yccheok8-Dec-02 16:50 
QuestionHow to invoke DLL in C# Pin
Anonymous8-Dec-02 14:02
Anonymous8-Dec-02 14:02 
AnswerRe: How to invoke DLL in C# Pin
Eric Gunnerson (msft)9-Dec-02 12:46
Eric Gunnerson (msft)9-Dec-02 12:46 

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.