Exemplo n.º 1
0
        } // !AddBuyerTaxRegistration()

        public void AddSellerTaxRegistration(string no, TaxRegistrationSchemeID schemeID)
        {
            this.SellerTaxRegistration.Add(new TaxRegistration()
            {
                No       = no,
                SchemeID = schemeID
            });
        } // !AddSellerTaxRegistration()
 public static TaxRegistrationSchemeID FromString(this TaxRegistrationSchemeID _, string s)
 {
     try
     {
         return((TaxRegistrationSchemeID)Enum.Parse(typeof(TaxRegistrationSchemeID), s));
     }
     catch
     {
         return(TaxRegistrationSchemeID.Unknown);
     }
 } // !FromString()
        } // !FromString()

        public static string EnumToString(this TaxRegistrationSchemeID codes)
        {
            return(codes.ToString("g"));
        } // !ToString()