internal void WriteTo(Writer writer) { var flags = Flags.None | (this.Maximum.HasValue ? Flags.Maximum : 0) ; writer.WriteVar((uint)flags); writer.WriteVar(this.Minimum); if ((flags & Flags.Maximum) != 0) { writer.WriteVar(this.Maximum.GetValueOrDefault()); } }
internal void WriteTo(Writer writer) { writer.WriteVar(this.Count); writer.WriteVar((sbyte)this.Type); }