コード例 #1
0
        public string String()
        {
            int lastIndexOf = _index.Value();

            if (lastIndexOf == NotFound)
            {
                return(_source.String());
            }

            return(_source.String().Insert(_index.Value(), _target.String()));
        }
コード例 #2
0
        public string String()
        {
            int lastIndexOf = _lastIndexOf.Value();

            if (lastIndexOf == NotFound)
            {
                return(_source.String());
            }

            return(_source.String().Remove(lastIndexOf, _lengthOf.Value()));
        }
コード例 #3
0
        public string value()
        {
            var d = _diff.Value();

            if (d > 0)
            {
                _str = "Слишком маленькое число!\n";
            }
            else if (d < 0)
            {
                _str = "Слишком большое число!\n";
            }
            else
            {
                _str = "";
            }

            return(_str);
        }
コード例 #4
0
 public int Value()
 {
     return(_secret.Value() - _guess.Value());
 }