public static string GetCode(CodesEnum code) { switch (code) { default: throw new ArgumentOutOfRangeException(nameof(code), code, null); } }
public static string GetCode(CodesEnum code) { switch (code) { case CodesEnum.Declarant: return(Declarant); case CodesEnum.Addressee: return(Addressee); case CodesEnum.Author: return(Author); case CodesEnum.PatentOwner: return(PatentOwner); case CodesEnum.PatentAttorney: return(PatentAttorney); case CodesEnum.Storona1: return(Storona1); case CodesEnum.Contact98: return(Contact98); case CodesEnum.Correspondence: return(Correspondence); case CodesEnum.Confidant: return(Confidant); case CodesEnum.Storona2: return(Storona2); default: throw new ArgumentOutOfRangeException(nameof(code), code, null); } }
public Codes(CodesEnum cod) { code = cod; }