I have a class named country and have following properites
string EngName
string ChiName
How to do if user request EngName, then it can return EngName, if user
request ChiName, if can return ChiName
but i do not want to using if-then-else since it maybe have KrName, ThaiName
in the furture.
Thanks
m(_ _)m
string EngName
string ChiName
How to do if user request EngName, then it can return EngName, if user
request ChiName, if can return ChiName
but i do not want to using if-then-else since it maybe have KrName, ThaiName
in the furture.
Thanks
m(_ _)m
Comment