Example #1
0
        /*
         * Write the given entry to the given writer.
         */
        private void WriteEntry(BinaryWriter writer, List <FieldInstance> fields)
        {
#if DEBUG
            for (int i = 0; i < fields.Count; i++)
            {
                try {
                    FieldInstance field = fields[i];
                    field.Encode(writer);
                } catch (Exception x) {
                    Console.WriteLine(x);
                    throw x;
                }
            }
#else
            fields.ForEach(delegate(FieldInstance field) { field.Encode(writer); });
#endif
        }