示例#1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void initialize(Object[] arguments) throws org.maltparser.core.exception.MaltChainedException
        public override void initialize(object[] arguments)
        {
            if (arguments.Length != 1)
            {
                throw new SyntaxGraphException("Could not initialize DGraphAddressFunction: number of arguments are not correct. ");
            }
            if (!(arguments[0] is AddressFunction))
            {
                throw new SyntaxGraphException("Could not initialize DGraphAddressFunction: the second argument is not an addres function. ");
            }
            addressFunction = (AddressFunction)arguments[0];
        }