示例#1
0
        public override void WriteValueList(System.Collections.IList obj, IO.Serializer.IWriter pkg)
        {
            var lst = obj;

            unsafe
            {
                UInt16 count = 0;
                if (lst != null)
                {
                    count = (UInt16)lst.Count;
                }
                pkg.WritePtr(&count, sizeof(UInt16));
                for (UInt16 i = 0; i < count; i++)
                {
                    var v = lst[i] as BitSet;
                    pkg.Write(v);
                }
            }
        }
示例#2
0
        public override void WriteValue(object obj, IO.Serializer.IWriter pkg)
        {
            var v = obj as BitSet;

            pkg.Write(v);
        }