Пример #1
0
        static void Main(string[] args)
        {
            Hashtable hs = new Hashtable();

            hs.Add("Name", new ParameterInfo("W01", typeof(string)));

            string       func = "ConsoleApp.Demo.DemoFunctionAPI";
            IFunctionAPI api  = (IFunctionAPI)Activator.CreateInstance(Type.GetType(func));

            ProcessWrapper.Process(api.SetParameters, hs);
            DataTable table = ProcessWrapper.Process <DataTable>(api.Execute);

            Trace.WriteLine("END");
        }