/*
         * Returns the compiled type for an input file
         */

        public Type GetCompiledType(string virtualPath)
        {
            Debug.Trace("CBM", "GetCompiledType " + virtualPath);

            if (virtualPath == null)
            {
                throw new ArgumentNullException("virtualPath");
            }

            EnsureHostCreated();

            string[] typeAndAsemblyName = _host.GetCompiledTypeAndAssemblyName(VirtualPath.Create(virtualPath), null);
            if (typeAndAsemblyName == null)
            {
                return(null);
            }

            Assembly a = Assembly.LoadFrom(typeAndAsemblyName[1]);
            Type     t = a.GetType(typeAndAsemblyName[0]);

            return(t);
        }