RefactoringEssentials
RefactoringEssentials copied to clipboard
RECS0021 - 'Virtual member call in constructor' when call delegate
trafficstars
public class Builder
{
private readonly bool _isProduction;
public Builder(IsProduction isProduction)
{
_isProduction = isProduction();
}
public delegate bool IsProduction();
public string Build()
{
return string.Empty;
}
}
Hi, I have fixed this in my fork.