public static bool TryParse(string value, out DocumentAttestationMode result) { result = default(DocumentAttestationMode); if (value == "personal") { result = DocumentAttestationMode.Personal; } else if (value == "professional") { result = DocumentAttestationMode.Professional; } else if (value == "legal") { result = DocumentAttestationMode.Legal; } else if (value == "official") { result = DocumentAttestationMode.Official; } else { return(false); } return(true); }
public static string ToString(DocumentAttestationMode value) { if (value == DocumentAttestationMode.Personal) { return("personal"); } else if (value == DocumentAttestationMode.Professional) { return("professional"); } else if (value == DocumentAttestationMode.Legal) { return("legal"); } else if (value == DocumentAttestationMode.Official) { return("official"); } else { throw new ArgumentException("Unrecognized DocumentAttestationMode value: " + value.ToString()); } }
public static bool TryParse(string value, out DocumentAttestationMode result) { result = default(DocumentAttestationMode); if( value=="personal") result = DocumentAttestationMode.Personal; else if( value=="professional") result = DocumentAttestationMode.Professional; else if( value=="legal") result = DocumentAttestationMode.Legal; else if( value=="official") result = DocumentAttestationMode.Official; else return false; return true; }
public static string ToString(DocumentAttestationMode value) { if( value==DocumentAttestationMode.Personal ) return "personal"; else if( value==DocumentAttestationMode.Professional ) return "professional"; else if( value==DocumentAttestationMode.Legal ) return "legal"; else if( value==DocumentAttestationMode.Official ) return "official"; else throw new ArgumentException("Unrecognized DocumentAttestationMode value: " + value.ToString()); }