Code smell constructeur

Popup_qui_marche_pas
Anthony RICHARD 2 years ago
parent 50eb60bad2
commit dd92f674a0

@ -4,7 +4,7 @@ namespace Model
{ {
public class User public class User
{ {
public string Username public string? Username
{ {
get => username; get => username;
private set private set
@ -13,9 +13,9 @@ namespace Model
username = value; username = value;
} }
} }
private string username; private string? username;
public string Biographie public string? Biographie
{ {
get => biographie; get => biographie;
private set private set
@ -24,9 +24,9 @@ namespace Model
biographie = value; biographie = value;
} }
} }
private string biographie; private string? biographie;
public string Email public string? Email
{ {
get => email; get => email;
private set private set
@ -37,9 +37,9 @@ namespace Model
return; return;
} }
} }
private string email; private string? email;
public string Password public string? Password
{ {
get => password; get => password;
private set private set
@ -49,7 +49,7 @@ namespace Model
password = value; password = value;
} }
} }
private string password; private string? password;
public int Role { get; } public int Role { get; }
private int role; private int role;

Loading…
Cancel
Save