Guest User

Untitled

a guest
Jul 20th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.44 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace InfGospUtils
  7. {
  8.     class SoccerDictionary
  9.     {
  10.         public const int All = 0;
  11.         public const int Live = 1;
  12.         public const int England = 2;
  13.         public const int Italy = 3;
  14.         public const int Spain = 4;
  15.         public const int Germany = 5;
  16.         public const int France = 6;
  17.         public const int Holland = 7;
  18.         public const int Belgium = 8;
  19.         public const int Portugal = 9;
  20.         public const int Scotland = 10;
  21.  
  22.         public static string ToString(int category)
  23.         {
  24.             switch (category)
  25.             {
  26.                 case 0:
  27.                     return "soccer";
  28.                 case 1:
  29.                     return "live";
  30.                 case 2:
  31.                     return "england";
  32.                 case 3:
  33.                     return "italy";
  34.                 case 4:
  35.                     return "spain";
  36.                 case 5:
  37.                     return "germany";
  38.                 case 6:
  39.                     return "france";
  40.                 case 7:
  41.                     return "holland";
  42.                 case 8:
  43.                     return "belgium";
  44.                 case 9:
  45.                     return "portugal";
  46.                 case 10:
  47.                     return "scotland";
  48.                 default:
  49.                     return null;
  50.             }
  51.         }
  52.     }
  53. }
Add Comment
Please, Sign In to add comment