public override void OnWrite(ByteObjectWriter writer, object value, Type defaultItemType) { writer.Short((short)value); }