class PlatformDotNetEntityFrameworkCacheEntry implements Binarylizable {
    /** Dependent entity set names. */
    private String[] entitySets;

    /** Cached data bytes. */
    private byte[] data;

    /**
     * Ctor.
     */
    public PlatformDotNetEntityFrameworkCacheEntry() {
        // No-op.
    }

    /**
     * Ctor.
     *
     * @param entitySets Entity set names.
     * @param data Data bytes.
     */
    PlatformDotNetEntityFrameworkCacheEntry(String[] entitySets, byte[] data) {
        this.entitySets = entitySets;
        this.data = data;
    }

    /**
     * @return Dependent entity sets with versions.
     */
    public String[] entitySets() {
        return entitySets;
    }

    /**
     * @return Cached data bytes.
     */
    public byte[] data() {
        return data;
    }

    /** {@inheritDoc} */
    @Override public void writeBinary(BinaryWriter writer) throws BinaryObjectException {
        final BinaryRawWriter raw = writer.rawWriter();

        if (entitySets != null) {
            raw.writeInt(entitySets.length);

            for (String entitySet : entitySets)
                raw.writeString(entitySet);
        }
        else
            raw.writeInt(-1);

        raw.writeByteArray(data);
    }

    /** {@inheritDoc} */
    @Override public void readBinary(BinaryReader reader) throws BinaryObjectException {<FILL_FUNCTION_BODY>}
}

        BinaryRawReader raw = reader.rawReader();

        int cnt = raw.readInt();

        if (cnt >= 0) {
            entitySets = new String[cnt];

            for (int i = 0; i < cnt; i++)
                entitySets[i] = raw.readString();
        }
        else
            entitySets = null;

        data = raw.readByteArray();
    
<no_super_class>