public void ToData(DataOutput output) { if (m_initialized) { output.WriteBoolean(m_cacheableBoolean); output.WriteInt32(m_cacheableInt32); output.WriteArrayLen(m_cacheableInt32Array.Length); foreach (int item in m_cacheableInt32Array) { output.WriteInt32(item); } output.WriteUTF(m_cacheableFileName); output.WriteUTF(m_CacheableStringASCII); output.WriteArrayLen(m_cacheableStringArray.Length); foreach (string item in m_cacheableStringArray) { output.WriteUTF(item); } output.WriteDictionary((System.Collections.IDictionary)m_cacheableHashMap); output.WriteArrayLen(m_cacheableVector.Count); foreach (object item in m_cacheableVector) { output.WriteObject(item); } } }