May be a basic question:
I went through this,
secondDomain.CreateInstance("AssemblyA", "AssemblyA.Demo", true,
System.Reflection.BindingFlags.CreateInstance, null,
new object[] { 7, 3 }, null, null);
And looked at the explanation in form of comments.
// Returns:
// An object that is a wrapper for the new instance specified by typeName. The
// return value needs to be unwrapped to access the real object.
MSDN: AppDomain.CreateInstance Method.
What is wrapper for object in this context? Why is this used? How to unwrap this?