public static TaxExemptionReasonCodes?FromString(this TaxExemptionReasonCodes _, string s) { try { return((TaxExemptionReasonCodes)Enum.Parse(typeof(TaxExemptionReasonCodes), s.Replace("_", "-"))); } catch { return(null); } } // !FromString()
} // !FromString() public static string EnumToString(this TaxExemptionReasonCodes codes) { return(codes.ToString("g").Replace("_", "-")); } // !ToString()