Derived Class With Inherited DocsMethod With Example Method
An override of the method with an example
Definition
Namespace: XMLCommentsExamples.DocumentationInheritance
Assembly: XMLCommentsExamples (in XMLCommentsExamples.dll) Version: 2025.4.26.0
Always returns false
Assembly: XMLCommentsExamples (in XMLCommentsExamples.dll) Version: 2025.4.26.0
C#
public override bool MethodWithExample()VB
Public Overrides Function MethodWithExample As BooleanC++
public:
virtual bool MethodWithExample() overrideF#
abstract MethodWithExample : unit -> bool
override MethodWithExample : unit -> bool Return Value
BooleanAlways returns false
Example
This example is from the base class
// 'x' is always true
bool x = instance.MethodWithExample();
This example applies to the derived class:
if(derivedInstance.MethodWithExample())
Console.WriteLine("This is never reached");