Beispiel #1
0
 public static string ToString(IdentifierUse value)
 {
     if (value == IdentifierUse.Usual)
     {
         return("usual");
     }
     else if (value == IdentifierUse.Official)
     {
         return("official");
     }
     else if (value == IdentifierUse.Temp)
     {
         return("temp");
     }
     else
     {
         throw new ArgumentException("Unrecognized IdentifierUse value: " + value.ToString());
     }
 }
 public static string ToString(IdentifierUse value)
 {
     if( value==IdentifierUse.Usual )
         return "usual";
     else if( value==IdentifierUse.Official )
         return "official";
     else if( value==IdentifierUse.Temp )
         return "temp";
     else
         throw new ArgumentException("Unrecognized IdentifierUse value: " + value.ToString());
 }