Skip to content

Commit d57a494

Browse files
dennisdoomenDennis DoomenCopilot
authored
Update AV1010 guideline (#347)
Split from #298. Co-authored-by: Dennis Doomen <dennis.doomen@greenchoice.nl> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 25630e9 commit d57a494

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

_rules/1010.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ rule_category: class-design
44
title: Don't suppress compiler warnings using the `new` keyword
55
severity: 1
66
---
7-
Compiler warning [CS0114](https://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0114) is issued when breaking [Polymorphism](http://en.wikipedia.org/wiki/Polymorphism_in_object-oriented_programming), one of the most essential object-orientation principles.
7+
Compiler warning [CS0114](https://learn.microsoft.com/en-us/dotnet/csharp/misc/cs0114) is issued when breaking [Polymorphism](http://en.wikipedia.org/wiki/Polymorphism_in_object-oriented_programming), one of the most essential object-orientation principles.
88
The warning goes away when you add the `new` keyword, but it keeps sub-classes difficult to understand. Consider the following two classes:
99

1010
public class Book

0 commit comments

Comments
 (0)