-
Notifications
You must be signed in to change notification settings - Fork 2
Refactor default parameters on interface, virtual methods #104
Copy link
Copy link
Open
Labels
Priority: 1Severity 1: MinorStatus 0: DiscussionNeeds further evaluation of requirements and prioritization.Needs further evaluation of requirements and prioritization.Status 2: ScheduledPlanned for an upcoming release.Planned for an upcoming release.Type: ImprovementImproves the functionality or interface of an existing feature.Improves the functionality or interface of an existing feature.
Milestone
Metadata
Metadata
Assignees
Labels
Priority: 1Severity 1: MinorStatus 0: DiscussionNeeds further evaluation of requirements and prioritization.Needs further evaluation of requirements and prioritization.Status 2: ScheduledPlanned for an upcoming release.Planned for an upcoming release.Type: ImprovementImproves the functionality or interface of an existing feature.Improves the functionality or interface of an existing feature.
In “Framework Design Patterns”, under 5.1 “General Member Design Guidelines”, the following recommendation should be followed:
This is inconsistent with how OnTopic is written. The recommended resolution is to instead implement the following:
This relies on the method resolution logic of the C# compiler.
At minimum, this should be implemented on classes intended for dependency injection. For classes not intended for dependency injection, this may not be appropriate. See considerations below regarding
usingscope.