We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6cd35b5 + b54862d commit 1c6b9baCopy full SHA for 1c6b9ba
1 file changed
documentation/SA1600.md
@@ -44,6 +44,36 @@ public string JoinNames(string firstName, string lastName)
44
}
45
```
46
47
+The next example shows a method that inherits documentation from a method in the base class:
48
+
49
+```csharp
50
+/// <summary>
51
+/// Example base class.
52
+/// </summary>
53
+class Vehicle
54
+{
55
+ /// <summary>
56
+ /// Accelerates the vehicle.
57
+ /// </summary>
58
+ public virtual void Accelerate()
59
+ {
60
+ Console.WriteLine("Vehicle is accelerating");
61
+ }
62
+}
63
64
65
+/// Example derived class.
66
67
+class Car : Vehicle
68
69
+ /// <inheritdoc/>
70
+ public override void Accelerate()
71
72
+ Console.Writeline("Car is accelerating");
73
74
75
+```
76
77
## How to suppress violations
78
79
```csharp
0 commit comments