diff --git a/documentation/SA1600.md b/documentation/SA1600.md index 77665426f..806ef0a8b 100644 --- a/documentation/SA1600.md +++ b/documentation/SA1600.md @@ -44,6 +44,36 @@ public string JoinNames(string firstName, string lastName) } ``` +The next example shows a method that inherits documentation from a method in the base class: + +```csharp +/// +/// Example base class. +/// +class Vehicle +{ + /// + /// Accelerates the vehicle. + /// + public virtual void Accelerate() + { + Console.WriteLine("Vehicle is accelerating"); + } +} + +/// +/// Example derived class. +/// +class Car : Vehicle +{ + /// + public override void Accelerate() + { + Console.Writeline("Car is accelerating"); + } +} +``` + ## How to suppress violations ```csharp