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)); }
public StringKeeper(StringKeeper stringKeeper) { _index = stringKeeper._index; _text = stringKeeper._text; }