Type t=Type.GetType(pluginName);//反射    得到类型                
                    
                    if(t ==  null)
                    {
                         系统缺少插件!
                        return;
                    }

 

try
                    {
                    
                        plugObject = Activator.CreateInstance(t);//创建实体
                    
                    }
                    catch(Exception e)
                    {
                       ("你无法调用此功能!原因:系统插件已过期!");
                     
                    }

posted on 2021-05-29 11:07  lypzxy  阅读(73)  评论(0编辑  收藏  举报