public MetricSystem(string name) { Name = name ?? throw new ArgumentNullException(nameof(name)); units = new HashSet <Unit>(); prefixes = new HashSet <MetricPrefix>(); MetricSystemManager.AddMetricSystem(this); }
public MetricSystem(string name, IList <Unit> units) { Name = name ?? throw new ArgumentNullException(nameof(name)); FullName = null; this.units = new HashSet <Unit>(units ?? throw new ArgumentNullException(nameof(units))); prefixes = new HashSet <MetricPrefix>(); MetricSystemManager.AddMetricSystem(this); }