szabototo89 / CodeSharper

Refactoring tool, written in C# and using TDD for developing
2 stars 0 forks source link

[core] Implement Insert method into TextSpan class #15

Closed szabototo89 closed 10 years ago

szabototo89 commented 10 years ago

Implement Insert method into TextSpan class:

var textSpan = new TextSpan("Hello World!");
textSpan.Insert(position: 1, text: "E")
        .Insert(position: -1, text: "!");

With passing negative number to position parameter we can insert text at the end of string literal.

szabototo89 commented 10 years ago

TextSpan class has removed from CodeSharper.