예제 #1
0
파일: TextEdit.cs 프로젝트: zz110/dnSpy
 public ITextSnapshot Apply()
 {
     if (Canceled || hasApplied)
     {
         throw new InvalidOperationException();
     }
     hasApplied = true;
     textBuffer.ApplyChanges(this, changes, options, reiteratedVersionNumber, editTag);
     return(textBuffer.CurrentSnapshot);
 }