Record Type Enum

14 views
Skip to first unread message

xiv

unread,
Mar 30, 2009, 7:37:33 AM3/30/09
to excellibrary
Hi all,

Thanks for a wonderful job.

Just looking through the code - RecordType is coded as a regular
class.

I believe that

public enum RecordType: ushort

would be neater

also

in that case the Record class could have

public RecordType Type;

as a member, not UInt16

(much neater in my opinion)

thanks

--
xiv

Liu Junfeng

unread,
Mar 30, 2009, 7:53:04 AM3/30/09
to excell...@googlegroups.com
Hi, I've also thought of using enum, but when doing binary encode and decode it requires a lot of UInt16 and RecordType conversion codes.
Reply all
Reply to author
Forward
0 new messages