RefactoringEssentials icon indicating copy to clipboard operation
RefactoringEssentials copied to clipboard

RECS0021 - 'Virtual member call in constructor' when call delegate

Open sm-g opened this issue 8 years ago • 1 comments
trafficstars

public class Builder
{
	private readonly bool _isProduction;

	public Builder(IsProduction isProduction)
	{
		_isProduction = isProduction();
	}

	public delegate bool IsProduction();

	public string Build()
	{
		return string.Empty;
	}
}

sm-g avatar Sep 07 '17 15:09 sm-g

Hi, I have fixed this in my fork.

nick-morhun avatar Dec 14 '17 11:12 nick-morhun