Access data from main application within a plugin in C#
问题 I am using this approach to make my C#-application extensible for other developers: Creating a simple plugin mechanism It works just fine but only in "one direction" which means that the developer who writes a new plugin can define methods and variables within the plugin and those will be imported to my application. So my question is now: How can i access already existing data from my main application (e.g. a variable "string test") within the plugin? 回答1: You need to create an "SDK" for your