Click here to Skip to main content
15,880,503 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to run program at windows startup with administrator rights (on VISTA and Windows 7 )? Pin
PIEBALDconsult2-Nov-10 18:16
mvePIEBALDconsult2-Nov-10 18:16 
AnswerRe: How to run program at windows startup with administrator rights (on VISTA and Windows 7 )? Pin
Dave Kreskowiak2-Nov-10 14:01
mveDave Kreskowiak2-Nov-10 14:01 
GeneralRe: How to run program at windows startup with administrator rights (on VISTA and Windows 7 )? Pin
Aseem Sharma4-Nov-10 2:49
Aseem Sharma4-Nov-10 2:49 
AnswerRe: How to run program at windows startup with administrator rights (on VISTA and Windows 7 )? Pin
PIEBALDconsult2-Nov-10 18:19
mvePIEBALDconsult2-Nov-10 18:19 
GeneralRe: How to run program at windows startup with administrator rights (on VISTA and Windows 7 )? Pin
Aseem Sharma4-Nov-10 3:35
Aseem Sharma4-Nov-10 3:35 
Questionhow to detact terminal emulation Pin
bigjoe11a2-Nov-10 5:52
bigjoe11a2-Nov-10 5:52 
AnswerRe: how to detact terminal emulation Pin
PIEBALDconsult2-Nov-10 15:13
mvePIEBALDconsult2-Nov-10 15:13 
QuestionLoad assembly dynamically and call methods Pin
marca2922-Nov-10 4:14
marca2922-Nov-10 4:14 
Hi,

I am working with a C# project containing different assemblies. One of the assemblies A is used by other assemblies, added as a reference link. Now we want to load this assembly dynamically at runtime instead and calling its methods. There is no problem loading assembly A dynamically

Assembly assembly = Assembly.LoadFrom(Path.GetFullPath(assemblyName));

I can call methods in assembly A throught

MethodInfo method = Type.GetMethod("MethodXX");

method.Invoke(null, null);


Now to my question. Do I have to call all methods in assembly A with Invoke(...) or can I just create a interface and call methods with
MethodXX(....)?

Regards
Olof
AnswerRe: Load assembly dynamically and call methods Pin
Luc Pattyn2-Nov-10 4:20
sitebuilderLuc Pattyn2-Nov-10 4:20 
AnswerRe: Load assembly dynamically and call methods Pin
souidi abderrahman3-Nov-10 0:30
souidi abderrahman3-Nov-10 0:30 
QuestionChnaging connectionString and reloading it Pin
mrkeivan2-Nov-10 4:06
mrkeivan2-Nov-10 4:06 
AnswerRe: Chnaging connectionString and reloading it Pin
thatraja2-Nov-10 4:25
professionalthatraja2-Nov-10 4:25 
GeneralRe: Chnaging connectionString and reloading it Pin
mrkeivan2-Nov-10 4:34
mrkeivan2-Nov-10 4:34 
GeneralRe: Chnaging connectionString and reloading it Pin
jschell2-Nov-10 8:28
jschell2-Nov-10 8:28 
AnswerRe: Chnaging connectionString and reloading it Pin
alrosan4-Nov-10 8:18
alrosan4-Nov-10 8:18 
QuestionReading Data from a multi sequenced File Pin
MumbleB1-Nov-10 21:34
MumbleB1-Nov-10 21:34 
AnswerRe: Reading Data from a multi sequenced File Pin
OriginalGriff1-Nov-10 22:17
mveOriginalGriff1-Nov-10 22:17 
GeneralRe: Reading Data from a multi sequenced File Pin
MumbleB2-Nov-10 1:57
MumbleB2-Nov-10 1:57 
AnswerRe: Reading Data from a multi sequenced File Pin
PIEBALDconsult2-Nov-10 3:22
mvePIEBALDconsult2-Nov-10 3:22 
AnswerRe: Reading Data from a multi sequenced File Pin
jschell2-Nov-10 8:32
jschell2-Nov-10 8:32 
QuestionTable control help Pin
saqib821-Nov-10 6:53
saqib821-Nov-10 6:53 
AnswerRe: Table control help Pin
Ravi Bhavnani1-Nov-10 7:47
professionalRavi Bhavnani1-Nov-10 7:47 
AnswerRe: Table control help Pin
Dr.Walt Fair, PE1-Nov-10 10:48
professionalDr.Walt Fair, PE1-Nov-10 10:48 
Questionproblem in deployment Pin
Shuaib wasif khan1-Nov-10 0:45
Shuaib wasif khan1-Nov-10 0:45 
AnswerRe: problem in deployment Pin
Vimalsoft(Pty) Ltd1-Nov-10 9:41
professionalVimalsoft(Pty) Ltd1-Nov-10 9:41 

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.