Type interfaceType = typeof(ScriptInterface.IBaseScript); ScriptInterface.IScriptType1 scriptObject = constructor.Invoke(null) as ScriptInterface.IScriptType1; /*i want to make it more generic such: (interfaceType) scriptObject = constructor.Invoke(null) as interfaceType; */
System.Type.GetInterface(string)
typeof(ScriptInterface.IBaseScript).FullName
System.Type.FindInterfaces
System.Type.GetConstructors(BindingFlags)
System.Reflection.BindingFlags.Public
System.Reflection.BindingFlags.NonPublic
System.Reflection.ConstructorInfo
ScriptInterface.IBaseScript
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)