Пример #1
0
        public static Boolean[] ReadBooleanArray(this ObjectReader reader)
        {
            var length = reader.ReadInt32();

            Boolean[] value = new Boolean[length];
            for (int i = 0; i < length; i++)
            {
                value[i] = reader.ReadBoolean();
            }
            return(value);
        }
Пример #2
0
        public static HybridDictionary ReadHybridDictionary(this ObjectReader reader, int index)
        {
            var count              = reader.ReadInt32();
            var caseInsensitive    = reader.ReadBoolean();
            HybridDictionary value = new HybridDictionary(count, caseInsensitive);

            reader.ReferenceContainer[index] = value;
            for (int i = 0; i < count; i++)
            {
                value.Add(reader.Deserialize(), reader.Deserialize());
            }
            return(value);
        }