Esempio n. 1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public org.neo4j.values.AnyValue apply(org.neo4j.kernel.api.proc.Context ctx, org.neo4j.values.AnyValue[] input) throws org.neo4j.internal.kernel.api.exceptions.ProcedureException
            public override AnyValue Apply(Context ctx, AnyValue[] input)
            {
                if (input != null && input.Length == 2)
                {
                    if (input[0] is IntegralValue && input[1] is IntegralValue)
                    {
                        IntegralValue seconds     = ( IntegralValue )input[0];
                        IntegralValue nanoseconds = ( IntegralValue )input[1];
                        return(DateTimeValue.ofEpoch(seconds, nanoseconds));
                    }
                }
                throw new ProcedureException(Org.Neo4j.Kernel.Api.Exceptions.Status_Procedure.ProcedureCallFailed, "Invalid call signature for " + this.GetType().Name + ": Provided input was " + Arrays.ToString(input));
            }