Пример #1
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();
        }
Пример #2
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.WriteBoolean(false);
            }