示例#1
0
文件: Real.cs 项目: kia92798/tinyasn1
        public override ISet GetSet(Asn1Value min, bool minIsIncluded, Asn1Value max, bool maxIsIncluded)
        {
            RealValueSet ret = new RealValueSet();

            double vmin = double.NegativeInfinity;
            double vmax = double.PositiveInfinity;

            if (min != null)
                vmin = ((RealValue)min).Value;
            if (max != null)
                vmax = ((RealValue)max).Value;

            ret.AddRange(vmin, vmax);
            return ret;
        }
示例#2
0
文件: Real.cs 项目: kia92798/tinyasn1
        public override ISet GetSet(Asn1Value val)
        {
            RealValueSet ret = new RealValueSet();

            double v = ((RealValue)val).Value;
            ret.AddRange(v, v);

            return ret;
        }