-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
advanced-concepts/subsvcdotnet-csharp/svchelp wantedGood for community contributors to help [up-for-grabs]Good for community contributors to help [up-for-grabs]in-prThis issue will be closed (fixed) by an active pull request.This issue will be closed (fixed) by an active pull request.
Description
Type of issue
Typo
Description
In this section, ILight was added Power() with default implementation:
public interface ILight
{
//...
public PowerStatus Power() => PowerStatus.NoPower;
}
However, the following sections are indicating it as PowerStatus.
Avoid overriding the same method ... an override of PowerStatus, ....
Both the diagram right below the above paragraph and the next paragraph after the diagram contain the same typo.
The preceding diagram illustrates the ambiguity. OverheadLight doesn't provide an implementation of ILight.PowerStatus. Both IBlinkingLight and ITimerLight provide overrides that are more specific. A call to ILight.PowerStatus on an instance of OverheadLight is ambiguous. You must add a new override in OverheadLight to resolve the ambiguity.
Page URL
Content source URL
Document Version Independent Id
98229926-6c7a-3ad1-ab5c-86231253986c
Platform Id
5f097f47-9790-5a92-55f5-70776d1c799f
Article author
Metadata
- ID: 2c7899e8-3f01-41d2-137a-e334b73699a4
- PlatformId: 5f097f47-9790-5a92-55f5-70776d1c799f
- Service: dotnet-csharp
- Sub-service: advanced-concepts
Metadata
Metadata
Assignees
Labels
advanced-concepts/subsvcdotnet-csharp/svchelp wantedGood for community contributors to help [up-for-grabs]Good for community contributors to help [up-for-grabs]in-prThis issue will be closed (fixed) by an active pull request.This issue will be closed (fixed) by an active pull request.