示例#1
0
文件: Uom.cs 项目: sm-g/diagnosis
        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);
        }
示例#2
0
 public virtual int CompareTo(UomType other)
 {
     return(this.Ord.CompareTo(other.Ord));
 }