public static void writeLinkedHashSet(LinkedHashSet<?> set, DataOutput out) throws IOException {
    InternalDataSerializer.writeSet(set, out);
  }
Writes a <code>LinkedHashSet</code> to a <code>DataOutput</code>. Note that even though
<code>set</code> may be an instance of a subclass of <code>LinkedHashSet</code>,
<code>readLinkedHashSet</code> will always return an instance of <code>LinkedHashSet</code>,
<B>not</B> an instance of the subclass. To preserve the class type of <code>set</code>,
{@link #writeObject(Object, DataOutput)} should be used for data serialization.

@param set the <code>LinkedHashSet</code> to write
@param out the {@link DataInput} to write to

@throws IOException A problem occurs while writing to <code>out</code>

@see #readLinkedHashSet
@since GemFire 5.7
geode-core/src/main/java/org/apache/geode/DataSerializer.java