コード例 #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public void write(Object value, FlushableChannel into) throws IOException
            public override void write(object value, FlushableChannel into)
            {
                ValueType componentType = typeOf(value.GetType().GetElementType());

                into.put(componentType.Id());
                int length = Array.getLength(value);

                into.putInt(length);
                for (int i = 0; i < length; i++)
                {
                    componentType.Write(Array.get(value, i), into);
                }
            }