there are basically two ways:
public class SomeClass
{
private int someMember;
public SomeClass(int someMember)
{
this.someMember = someMember;
}
}
or
public class SomeClass
{
private int _someMember;
public SomeClass(int someMember)
{
_someMember = someMember;
}
}
Essentially you need to indicate to the compiler what is what. When the parameter name is the same name as the member name, then the compiler will assume one or the other but not both. So you need to differentiate in order for the compiler to know what is wanted.