You are mostly talking about reflection. I assume that we do not need to try to automatically detect assemblies.
You can do it something like:
Type t = Type.GetType("<fullyqualifiedname>.ThirdPartyClass", false) if (t != null) { FieldInfo fi = t.GetField("myInt", BindingFlags.Public | BindingFlags.Static); someInt = (int)fi.GetValue(null); } else someInt = 0;
driis source share