Advertisement
LostProphet

StringEnum

Aug 24th, 2011
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.60 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace StringEnumTest
  7. {
  8.     class StringEnum
  9.     {
  10.         public string info = string.Empty;
  11.  
  12.         private StringEnum(string info)
  13.         {
  14.             this.info = info;
  15.         }
  16.  
  17.         public static StringEnumTest1
  18.         {
  19.             get
  20.             {
  21.                 return new StringEnum("Test1");
  22.             }
  23.         }
  24.  
  25.         public static StringEnumTest2
  26.         {
  27.             get
  28.             {
  29.                 return new StringEnum("Test2");
  30.             }
  31.         }
  32.     }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement