示例#1
0
            public static IPC Build(eIPC etype, Type type)
            {
                if (type == null)
                {
                    return(null);
                }
                if (type.GetInterface(typeof(IPC).Name) == null)
                {
                    return(null);
                }
                IPC obj = (IPC)AppDomain.CurrentDomain.CreateInstanceAndUnwrap(type.Assembly.FullName, type.FullName, false, BindingFlags.CreateInstance, null,
                                                                               null, null, null);

                obj.Init(etype);
                return(obj);
            }