C#C
C#3y ago
Theos

❔ Switch case on Int type

Hey, so I have a class with variable _type and I want to store a variable type in it (long, int, short, ubyte etc etc).
Later I want to do a switch on _type
something like
switch(_type)
{
  case long:
  case int:
}

How can I do this?
Was this page helpful?