I
Ignacio Machin \( .NET/ C# MVP \)
Hi,
I have seen myself defining a class with a number of instances variables
and then creating properties around these variables, this is very easy as VS
2005 provide a refactor for this (Ctrl+r , Ctrl+e). But I often want to
create a constructor that receive one parameter per variable and assign it
to the variable.
a la:
classA
{
int i;
string s;
public ClassA(int i, string s)
{
this.i = i; this.s=s;
}
Does anybody knows of a tool that generate a constructor like that?
Thank,
I have seen myself defining a class with a number of instances variables
and then creating properties around these variables, this is very easy as VS
2005 provide a refactor for this (Ctrl+r , Ctrl+e). But I often want to
create a constructor that receive one parameter per variable and assign it
to the variable.
a la:
classA
{
int i;
string s;
public ClassA(int i, string s)
{
this.i = i; this.s=s;
}
Does anybody knows of a tool that generate a constructor like that?
Thank,