S
shapper
Hello,
I have a class as follows:
public class UserPaper {
public MembershipUser user { get; set; }
public string Password { get; set; }
public UserLeaf(MembershipUser newUser) {
UserLeaf(newUser, null);
}
public UserLeaf(MembershipUser newUser, string password) {
this user = newUser;
this password = password;
}
}
I simplified my code but basically I get the following error:
'UserPaper' is a 'type' but is used like a 'variable'
Do I need to repeat the definition in all methods? I am a little bit
confused.
Thanks,
Miguel
I have a class as follows:
public class UserPaper {
public MembershipUser user { get; set; }
public string Password { get; set; }
public UserLeaf(MembershipUser newUser) {
UserLeaf(newUser, null);
}
public UserLeaf(MembershipUser newUser, string password) {
this user = newUser;
this password = password;
}
}
I simplified my code but basically I get the following error:
'UserPaper' is a 'type' but is used like a 'variable'
Do I need to repeat the definition in all methods? I am a little bit
confused.
Thanks,
Miguel