public void CheckDoubleArray()
        {
            MemoryStream buffer = new MemoryStream();
            IFieldWriter writer = new FieldWriter(buffer);
            IFieldReader reader = new FieldReader(buffer);

            Double[] array1 = new Double[] {};
            Double[] array2 = new Double[] { 1 };
            Double[] array3 = new Double[] { 0, 0, 0, 0, 0, 0 };
            Double[] array4 = new Double[] { 0, 1, 2, 3, 4, 5 };
            Double[] array5 = new Double[] { 0, 1, 1, 2, 2, 2 };
            Double[] array6 = new Double[] { 0, 1, 1, 2, 2, 2, 3 };
            writer.Write(array1);
            writer.Write(array2);
            writer.Write(array3);
            writer.Write(array4);
            writer.Write(array5);
            writer.Write(array6);
            buffer.Position = 0;
            array1.CompareArray(reader.ReadDoubleArray());
            array2.CompareArray(reader.ReadDoubleArray());
            array3.CompareArray(reader.ReadDoubleArray());
            array4.CompareArray(reader.ReadDoubleArray());
            array5.CompareArray(reader.ReadDoubleArray());
            array6.CompareArray(reader.ReadDoubleArray());
        }