예제 #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: protected synchronized Class findClass(String name) throws ClassNotFoundException
        protected internal override Type FindClass(string name)
        {
            lock (this)
            {
                ByteCodes codes = _bytecodes.Remove(name);
                if (codes == null)
                {
                    throw new ClassNotFoundException(name);
                }
                string packageName = name.Substring(0, name.LastIndexOf('.'));
                if (getPackage(packageName) == null)
                {
                    definePackage(packageName, "", "", "", "", "", "", null);
                }
                return(defineClass(name, codes.Bytes(), null));
            }
        }