c# - Best practice: in domain model use typeof with interface or use enum -


what best practice next scenario (.net framework c#):

i have 1 object named message. message has 2 types, request , response.

i can have message object reference enum "messagetype". there can use 2 types.

i don't solution; know if there solution, if update code in future not break , easy modifications.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -