Exemplo n.º 1
0
        public string Difference(StringKeeper old)
        {
            if (old._text != _text)
            {
                return(string.Empty);
            }
            if (old._index > _index)
            {
                return(string.Empty);
            }

            return(_text.Substring(old._index, _index - old._index));
        }
Exemplo n.º 2
0
 public StringKeeper(StringKeeper stringKeeper)
 {
     _index = stringKeeper._index;
     _text  = stringKeeper._text;
 }