Example #1
0
 public static TaxExemptionReasonCodes?FromString(this TaxExemptionReasonCodes _, string s)
 {
     try
     {
         return((TaxExemptionReasonCodes)Enum.Parse(typeof(TaxExemptionReasonCodes), s.Replace("_", "-")));
     }
     catch
     {
         return(null);
     }
 } // !FromString()
Example #2
0
        } // !FromString()

        public static string EnumToString(this TaxExemptionReasonCodes codes)
        {
            return(codes.ToString("g").Replace("_", "-"));
        } // !ToString()