You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/SA1600.md
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,6 +83,31 @@ class Car : Vehicle
83
83
}
84
84
```
85
85
86
+
Starting with C# 9, overrides can declare covariant return types. Documentation can still be inherited directly from the base member using `<inheritdoc/>`:
87
+
88
+
```csharp
89
+
/// <summary>
90
+
/// Base factory.
91
+
/// </summary>
92
+
classWidgetFactory
93
+
{
94
+
/// <summary>
95
+
/// Creates a widget.
96
+
/// </summary>
97
+
/// <returns>The newly created <seecref="Widget"/>.</returns>
0 commit comments