This question is locked. New answers and comments are not allowed.
Hello,
I can't find a way to refactor my code in order to add a parameter in the constructor of my class.
Let's suppose following code :
What I would like is to refactor to introduce the misssing parameter to get a constructor signature like following :
public Author(string firstName)
Is there a way to do it or is this refactoring not available?
I can't find a way to refactor my code in order to add a parameter in the constructor of my class.
Let's suppose following code :
public class Author
{
public string FirstName { get; private set; }
public string LastName { get;private set; }
public Author()
{
this.FirstName = firstName;
}
}
What I would like is to refactor to introduce the misssing parameter to get a constructor signature like following :
public Author(string firstName)
{
this.FirstName = firstName;
}
Is there a way to do it or is this refactoring not available?
I can't find