public __t _findInterface <__t>(string nUrl)
        {
            if (null == nUrl || "" == nUrl)
            {
                return(default(__t));
            }
            __t       result_      = default(__t);
            UrlParser urlParser_   = new UrlParser(nUrl);
            string    assemblyUrl_ = urlParser_._noClassUrl();
            string    className_   = urlParser_._className();

            if (urlParser_._isPlugin())
            {
                if (urlParser_._isFile())
                {
                    PluginUfl pluginUlf_ = new PluginUfl();
                    pluginUlf_._runLoad(assemblyUrl_);
                    result_ = pluginUlf_._findFullClass <__t>(className_);
                }
                else
                {
                    AddinUdl addinUdl_ = new AddinUdl();
                    addinUdl_._runLoad(assemblyUrl_);
                    result_ = addinUdl_._findFullClass <__t>(className_);
                }
            }
            else
            {
                if (urlParser_._isFile())
                {
                    AssemblyUfl assemblyUfl_ = new AssemblyUfl();
                    assemblyUfl_._runLoad(assemblyUrl_);
                    result_ = assemblyUfl_._findFullClass <__t>(className_);
                }
                else
                {
                    AssemblyUdl assemblyUdl_ = new AssemblyUdl();
                    assemblyUdl_._runLoad(assemblyUrl_);
                    result_ = assemblyUdl_._findFullClass <__t>(className_);
                }
            }

            return(result_);
        }
Beispiel #2
0
        void _loadAssemblyUdl(string nUrl)
        {
            AssemblyUdl assemblyUdl_ = new AssemblyUdl();

            assemblyUdl_._runLoad(nUrl);
        }