23 references to ContentEquals
Microsoft.CodeAnalysis (1)
Text\SourceTextComparer.cs (1)
25return x.ContentEquals(y);
Microsoft.CodeAnalysis.CodeStyle (2)
FormattingAnalyzerHelper.cs (2)
41if (oldText.GetSubText(new TextSpan(change.Span.Start + offset, change.NewText.Length)).ContentEquals(SourceText.From(change.NewText))) 50if (oldText.GetSubText(new TextSpan(change.Span.Start, change.NewText.Length)).ContentEquals(SourceText.From(change.NewText)))
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
StringCopyPaste\StringCopyPasteCommandHandler.cs (1)
319return originalStringContentsAfterPaste.ContentEquals(newStringContentsAfterEdit);
Microsoft.CodeAnalysis.Features (6)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
552hasChanges = !oldText.ContentEquals(newText);
EditAndContinue\CommittedSolution.cs (1)
286if (committedDocument != null && sourceText.ContentEquals(matchingSourceText))
EditAndContinue\EditSession.cs (2)
227if (oldLineSpan != newLineSpan || !oldText.GetSubText(oldLineSpan).ContentEquals(newText.GetSubText(newLineSpan))) 327return oldSource.ContentEquals(newSource);
FormattingAnalyzerHelper.cs (2)
41if (oldText.GetSubText(new TextSpan(change.Span.Start + offset, change.NewText.Length)).ContentEquals(SourceText.From(change.NewText))) 50if (oldText.GetSubText(new TextSpan(change.Span.Start, change.NewText.Length)).ContentEquals(SourceText.From(change.NewText)))
Microsoft.CodeAnalysis.UnitTests (9)
Text\SourceTextTests.cs (9)
199Assert.True(f.ContentEquals(SourceText.From(HelloWorld, s_utf8))); 200Assert.False(f.ContentEquals(SourceText.From(HelloWorld + "o", s_utf8))); 201Assert.True(SourceText.From(HelloWorld, s_utf8).ContentEquals(SourceText.From(HelloWorld, s_utf8))); 206Assert.True(e1.ContentEquals(e1)); 207Assert.True(f.ContentEquals(e1)); 208Assert.True(e1.ContentEquals(f)); 210Assert.True(e2.ContentEquals(e2)); 211Assert.True(e1.ContentEquals(e2)); 212Assert.True(e2.ContentEquals(e1));
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Workspace_Editor.cs (2)
466return oldText.ContentEquals(newText) 543if (oldText == newText || oldText.ContentEquals(newText))
Microsoft.VisualStudio.LanguageServices (1)
Preview\PreviewUpdater.cs (1)
60if (existingDocument.GetTextSynchronously(CancellationToken.None).ContentEquals(document.GetTextSynchronously(CancellationToken.None)))
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
Venus\DocumentService_IntegrationTests.vb (1)
201Assert.True(currentDocument.GetTextSynchronously(CancellationToken.None).ContentEquals(document.GetTextSynchronously(CancellationToken.None)))