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
Post a Comment