Пример #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public <E extends Exception> void writeTo(ValueWriter<E> writer) throws E
        public override void WriteTo <E>(ValueWriter <E> writer) where E : Exception
        {
            writer.BeginArray(_value.Length, ValueWriter_ArrayType.Duration);
            foreach (DurationValue x in _value)
            {
                x.WriteTo(writer);
            }
            writer.EndArray();
        }
Пример #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public static <E extends Exception> void writeTo(ValueWriter<E> writer, double[] values) throws E
        public static void WriteTo <E>(ValueWriter <E> writer, double[] values) where E : Exception
        {
            writer.BeginArray(values.Length, ValueWriter_ArrayType.Double);
            foreach (double x in values)
            {
                writer.WriteFloatingPoint(x);
            }
            writer.EndArray();
        }
Пример #3
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public static <E extends Exception> void writeTo(ValueWriter<E> writer, long[] values) throws E
        public static void WriteTo <E>(ValueWriter <E> writer, long[] values) where E : Exception
        {
            writer.BeginArray(values.Length, ValueWriter_ArrayType.Long);
            foreach (long x in values)
            {
                writer.WriteInteger(x);
            }
            writer.EndArray();
        }
Пример #4
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public static <E extends Exception> void writeTo(ValueWriter<E> writer, String[] values) throws E
        public static void WriteTo <E>(ValueWriter <E> writer, string[] values) where E : Exception
        {
            writer.BeginArray(values.Length, ValueWriter_ArrayType.String);
            foreach (string x in values)
            {
                writer.WriteString(x);
            }
            writer.EndArray();
        }
Пример #5
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public static <E extends Exception> void writeTo(ValueWriter<E> writer, boolean[] values) throws E
        public static void WriteTo <E>(ValueWriter <E> writer, bool[] values) where E : Exception
        {
            writer.BeginArray(values.Length, ValueWriter_ArrayType.Boolean);
            foreach (bool x in values)
            {
                writer.WriteBoolean(x);
            }
            writer.EndArray();
        }
Пример #6
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: protected final <E extends Exception> void writeTo(ValueWriter<E> writer, ValueWriter_ArrayType type, java.time.temporal.Temporal[] values) throws E
        protected internal void WriteTo <E>(ValueWriter <E> writer, ValueWriter_ArrayType type, Temporal[] values) where E : Exception
        {
            writer.BeginArray(values.Length, type);
            foreach (Temporal x in values)
            {
                Value value = Values.TemporalValue(x);
                value.WriteTo(writer);
            }
            writer.EndArray();
        }
Пример #7
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public static <E extends Exception> void writeTo(ValueWriter<E> writer, org.neo4j.graphdb.spatial.Point[] values) throws E
        public static void WriteTo <E>(ValueWriter <E> writer, Point[] values) where E : Exception
        {
            writer.BeginArray(values.Length, ValueWriter_ArrayType.Point);
            foreach (Point x in values)
            {
                PointValue value = Values.Point(x);
                writer.WritePoint(value.CoordinateReferenceSystem, value.Coordinate());
            }
            writer.EndArray();
        }