KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Possible Duplicate: C# - Is there a better alternative than this to 'switch on type'? C# doesn't support switching on the type of an object. What is the best pattern of simulating this: switch (typeof(MyObj)) case Type1: case Type2: case Type3:
Tags (comma-separated)
Save Edits
Cancel