Skip to content

Virtual method call in constructor #203

@andrecarlucci

Description

@andrecarlucci

This:

    public class Person
    {
        public Person(string foo) {
            DoFoo(foo);
        }

        public virtual void DoFoo(string foo) { ... }
    }

Category: Usage
Diagnostic Id: CC0067
Severity: Warning

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions