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); } } }
public override void WriteValue(object obj, IO.Serializer.IWriter pkg) { var v = obj as BitSet; pkg.Write(v); }