コード例 #1
0
        public Currency(string code)
        {
            if (string.IsNullOrWhiteSpace(code))
            {
                throw new ArgumentNullException("code");
            }

            Code = new CurrencyCode(code);
            Name = string.Empty;
        }
コード例 #2
0
        public Currency(string code, string name)
        {
            if (code == null)
            {
                throw new ArgumentNullException("code");
            }

            Code = new CurrencyCode(code);
            Name = name ?? string.Empty;
        }