Guest User

Untitled

a guest
May 27th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. switch (entity.Type) {
  2. case Types.TypeA:
  3. // Process entity as type A
  4. break;
  5. case Types.TypeB:
  6. // Process entity as type B
  7. break;
  8. default:
  9. // It's an invalid type
  10. break;
  11. }
Add Comment
Please, Sign In to add comment