public Uom(string abbr, double factor, UomType type) { Contract.Requires(abbr != null); Contract.Requires(type != null); this.Abbr = abbr; this.Factor = factor; this.Type = type; type.AddUom(this); }
public virtual int CompareTo(UomType other) { return(this.Ord.CompareTo(other.Ord)); }