コード例 #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException
        private void readObject(ObjectInputStream @in)
        {
            @in.defaultReadObject();
            try
            {
                node = builder.build(expr).Root;
            }
            catch (ELException e)
            {
                throw new IOException(e.Message);
            }
        }
コード例 #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException
            internal virtual void readObject(ObjectInputStream @in)
            {
                @in.defaultReadObject();
                Type   type = (Type)@in.readObject();
                string name = (string)@in.readObject();

                Type[] args = (Type[])@in.readObject();
                try
                {
                    method = type.getDeclaredMethod(name, args);
                }
                catch (NoSuchMethodException e)
                {
                    throw new IOException(e.Message);
                }
            }
コード例 #3
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException
        private void readObject(ObjectInputStream @in)
        {
            @in.defaultReadObject();
            MethodWrapper[] wrappers = (MethodWrapper[])@in.readObject();
            if (wrappers.Length == 0)
            {
                functions = NO_FUNCTIONS;
            }
            else
            {
                functions = new System.Reflection.MethodInfo[wrappers.Length];
                for (int i = 0; i < functions.Length; i++)
                {
                    functions[i] = wrappers[i].method;
                }
            }
        }
コード例 #4
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: private void readObject(java.io.ObjectInputStream is) throws ClassNotFoundException, java.io.IOException
        private void readObject(ObjectInputStream @is)
        {
            @is.defaultReadObject();
        }