Example #1
0
        public override StringConvertibleValueTuple <DoubleValue, DoubleValue> AsReadOnly()
        {
            var readOnly = new DoubleLimit();

            readOnly.values   = Tuple.Create <DoubleValue, DoubleValue>((DoubleValue)Item1.AsReadOnly(), (DoubleValue)Item2.AsReadOnly());
            readOnly.readOnly = true;
            return(readOnly);
        }
Example #2
0
        public override StringConvertibleValueTuple <IntValue, IntValue> AsReadOnly()
        {
            var readOnly = new IntRange();

            readOnly.values   = Tuple.Create <IntValue, IntValue>((IntValue)Item1.AsReadOnly(), (IntValue)Item2.AsReadOnly());
            readOnly.readOnly = true;
            return(readOnly);
        }