Exemplo 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 == 1)
                {
                    if (input[0] is IntegralValue)
                    {
                        IntegralValue milliseconds = ( IntegralValue )input[0];
                        return(DateTimeValue.ofEpochMillis(milliseconds));
                    }
                }
                throw new ProcedureException(Org.Neo4j.Kernel.Api.Exceptions.Status_Procedure.ProcedureCallFailed, "Invalid call signature for " + this.GetType().Name + ": Provided input was " + Arrays.ToString(input));
            }