An override of the method with an example
Namespace: XMLCommentsExamples.DocumentationInheritanceAssembly: XMLCommentsExamples (in XMLCommentsExamples.dll) Version: 2014.1.26.0
public override bool MethodWithExample()
public override bool MethodWithExample()
public:
virtual bool MethodWithExample() override
public:
virtual bool MethodWithExample() override
abstract MethodWithExample : unit -> bool
override MethodWithExample : unit -> bool
abstract MethodWithExample : unit -> bool
override MethodWithExample : unit -> bool
Public Overrides Function MethodWithExample As Boolean
Public Overrides Function MethodWithExample As Boolean
Return Value
Type:
BooleanAlways returns false
This example is from the base class
bool x = instance.MethodWithExample();
// 'x' is always true
bool x = instance.MethodWithExample();
This example applies to the derived class:
if(derivedInstance.MethodWithExample())
Console.WriteLine("This is never reached");
if(derivedInstance.MethodWithExample())
Console.WriteLine("This is never reached");
Reference