Just searched a little and found this:
A Flexible Plugin System[
^]
Edit:
you can simple use this to get a value from the main exe:
int x = (int)System.Reflection.Assembly.GetEntryAssembly().GetType("SharedVarsClass").GetField("SharedVar").GetValue(null);