c# - Pass object from one dll to another on the runtime -
i have 2 projects, in 1 project have 1 form , class different information, info acquiring during runtime, in project have form, utilize object of first class info , set within form.
basically did research , tried using reflection that, of examples found didn't work (actually didn't work @ all).
assembly = assembly.loadfile("server.gui.localgui.dll"); object o = a.createinstance("servermanager"); type t = o.gettype();
this code tried, not sure if it's correct...
i using .net 2.0
is have working illustration of how utilize info of 1 object in dll on runtime?
i have 2 projects : myform1
, myform2
. take reference of project myform1
in myform2
. fill myform1
. create instance of myform1
in myform2
, access method , value.
or create library
project. expose static variable in it. take reference of library in both forms projects. assign value myform1
, access same property in myform2
.
but if want code managed code, seek learning , implementing mvp. may give new way @ solutions problems.
you can create both forms in same project. process info in separate library.
c# runtime .net-2.0
No comments:
Post a Comment