8000 Replace boxing IList in HighlightChangedEventArgs and seal derived classes by edwardneal · Pull Request #9559 · dotnet/wpf · GitHub
[go: up one dir, main page]

Skip to content

Replace boxing IList in HighlightChangedEventArgs and seal derived classes #9559

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 15, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Sealed HighlightChangeEventArgs derivatives
  • Loading branch information
edwardneal committed Aug 12, 2024
commit 3bb29ced6db8e8eca81f931f20227ca60f9e3ade
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ private bool IsFixedContainer
#region Private Types

// Argument for the Changed event, encapsulates a highlight change.
private class AnnotationHighlightChangedEventArgs : HighlightChangedEventArgs
private sealed class AnnotationHighlightChangedEventArgs : HighlightChangedEventArgs
{
// Constructor.
internal AnnotationHighlightChangedEventArgs(ITextPointer start, ITextPointer end)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ internal override Type OwnerType

#region Private Classes
// Argument for the Changed event, encapsulates a highlight change.
private class DocumentSequenceHighlightChangedEventArgs : HighlightChangedEventArgs
private sealed class DocumentSequenceHighlightChangedEventArgs : HighlightChangedEventArgs
{
// Constructor.
internal DocumentSequenceHighlightChangedEventArgs(IList<TextSegment> ranges)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ private int LayerCount
#region Private Types

// EventArgs for the Changed event.
private class LayerHighlightChangedEventArgs : HighlightChangedEventArgs
private sealed class LayerHighlightChangedEventArgs : HighlightChangedEventArgs
{
// Constructor.
internal LayerHighlightChangedEventArgs(ReadOnlyCollection<TextSegment> ranges, Type ownerType)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ private static TextDecorationCollection GetErrorTextDecorations()
#region Private Types

// Argument for the Changed event, encapsulates a highlight change.
private class SpellerHighlightChangedEventArgs : HighlightChangedEventArgs
private sealed class SpellerHighlightChangedEventArgs : HighlightChangedEventArgs
{
// Constructor.
internal SpellerHighlightChangedEventArgs(ITextPointer start, ITextPointer end)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ private bool IsTextRangeEmpty(ITextRange textRange)
#region Private Types

// Argument for the Changed event, encapsulates a highlight change.
private class TextSelectionHighlightChangedEventArgs : HighlightChangedEventArgs
private sealed class TextSelectionHighlightChangedEventArgs : HighlightChangedEventArgs
{
// Constructor.
internal TextSelectionHighlightChangedEventArgs(ITextPointer invalidRangeLeftStart, ITextPointer invalidRangeLeftEnd,
Expand Down
Loading
0