Advertisement
Guest User

Untitled

a guest
Apr 18th, 2015
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. ~ | public static TargetRuntime ParseRuntime (this string self)
  2. ~ | {
  3. ~ | if (self.Length > 0)
  4. ~ | {
  5. ~ | switch (self[1])
  6. ~ | {
  7. ~ | case '1':
  8. ~ | return self[3] == '0'
  9. ~ | ? TargetRuntime.Net_1_0
  10. ~ | : TargetRuntime.Net_1_1;
  11. ~ | case '2':
  12. ~ | return TargetRuntime.Net_2_0;
  13. ~ | case '4':
  14. ~ | default:
  15. ~ | return TargetRuntime.Net_4_0;
  16. ~ | }
  17. ~ | }
  18. ~ |
  19. ~ | return TargetRuntime.Net_4_0;
  20. ~ | }
  21. ~ | }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement