T
Tem
I have 2 projects a classlibrary project and a windows forms project.
the winform app calls the library to perform certain functions and returns
the results.
however i run into a problem where the method in the library class requires
the windows forms app to do something then complete its tasks then returns
the results to the win form app.
Example:
class WinFormApp
{
public static void Main()
{
//***inject some code to the Library file assembly***
LibraryFile.MethodA("some text");
}
}
--------------in a different assembly
Class LibraryFile
{
public static int MethodA(string content)
{
//process content
//*** Where the injected code needs to be placed in the process ***
//Write content to file (file's format and attributes are defined in the
WinFormApp) to hard drive
return content;
}
}
There will be more than 1 winformapp that calls this library. each will have
a slightly different use. the *** will be different for each.
I use .net 3.5. im thinking a delegate would be suitable for this use. but
not sure how to write it.
can someone guide me to the right track?
Thx
Tem
the winform app calls the library to perform certain functions and returns
the results.
however i run into a problem where the method in the library class requires
the windows forms app to do something then complete its tasks then returns
the results to the win form app.
Example:
class WinFormApp
{
public static void Main()
{
//***inject some code to the Library file assembly***
LibraryFile.MethodA("some text");
}
}
--------------in a different assembly
Class LibraryFile
{
public static int MethodA(string content)
{
//process content
//*** Where the injected code needs to be placed in the process ***
//Write content to file (file's format and attributes are defined in the
WinFormApp) to hard drive
return content;
}
}
There will be more than 1 winformapp that calls this library. each will have
a slightly different use. the *** will be different for each.
I use .net 3.5. im thinking a delegate would be suitable for this use. but
not sure how to write it.
can someone guide me to the right track?
Thx
Tem