public override void WriteTo(LiteBinaryWriter writer, object obj)
        {
            IDictionary dict = (IDictionary)obj;

            writer.Write(dict.Count);
            for (IDictionaryEnumerator i = dict.GetEnumerator(); i.MoveNext();)
            {
                writer.WriteObject(i.Key);
                writer.WriteObject(i.Value);
            }
        }
 public void Serialize(Stream stream, object obj)
 {
     using (LiteBinaryWriter writer = new LiteBinaryWriter(stream, Encoding.Default, _serializationContext))
     {
         writer.WriteObject(obj);
     }
 }
 public override void WriteTo(LiteBinaryWriter writer, object obj)
 {
     object[] array = (object[])obj;
     writer.Write(array.Length);
     for (int i = 0; i < array.Length; i++)
     {
         writer.WriteObject(array[i]);
     }
 }
        public override void WriteTo(LiteBinaryWriter writer, object obj)
        {
            Array array = (Array)obj;

            writer.Write(array.Length);
            for (int i = 0; i < array.Length; i++)
            {
                writer.WriteObject(array.GetValue(i));
            }
        }
        public override void WriteTo(LiteBinaryWriter writer, object obj)
        {
            IList list = (IList)obj;

            writer.Write(list.Count);
            for (int i = 0; i < list.Count; i++)
            {
                writer.WriteObject(list[i]);
            }
        }