public Currency(string code) { if (string.IsNullOrWhiteSpace(code)) { throw new ArgumentNullException("code"); } Code = new CurrencyCode(code); Name = string.Empty; }
public Currency(string code, string name) { if (code == null) { throw new ArgumentNullException("code"); } Code = new CurrencyCode(code); Name = name ?? string.Empty; }