Example #1
0
 private object InjectInputs(object obj, Plugin plug)
 {
     if (plug.Inputs != null && plug.Inputs.Length > 0)
     {
         ObjectDefinition objDef = CreateObjectDefinition(obj, plug);
         if (objDef != null)
         {
             Constructor.AddDefinition(objDef, "default");
             return(Constructor.Build <object>(obj, objDef.Name));
         }
     }
     return(obj);
 }