Browse Source

Merge pull request #10584 from workgroupengineering/fixes/Warnings/CS0628

fix: Warning CS0628 new protected member declared in sealed type
pull/10601/head
Max Katz 4 years ago
committed by GitHub
parent
commit
3c74c7ce13
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/Avalonia.Base/Media/DrawingGroup.cs
  2. 2
      src/Avalonia.Base/Styling/TypeNameAndClassSelector.cs

4
src/Avalonia.Base/Media/DrawingGroup.cs

@ -117,10 +117,10 @@ namespace Avalonia.Media
// root DrawingGroup, and be the same value as the root _currentDrawingGroup.
//
// Either way, _rootDrawing always references the root drawing.
protected Drawing? _rootDrawing;
private Drawing? _rootDrawing;
// Current DrawingGroup that new children are added to
protected DrawingGroup? _currentDrawingGroup;
private DrawingGroup? _currentDrawingGroup;
// Previous values of _currentDrawingGroup
private Stack<DrawingGroup?>? _previousDrawingGroupStack;

2
src/Avalonia.Base/Styling/TypeNameAndClassSelector.cs

@ -52,7 +52,7 @@ namespace Avalonia.Styling
return result;
}
protected TypeNameAndClassSelector(Selector? previous)
TypeNameAndClassSelector(Selector? previous)
{
_previous = previous;
}

Loading…
Cancel
Save