25 lines
684 B
C#
25 lines
684 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace UserPermissionTest_CS_WinForms
|
|
{
|
|
public class User
|
|
{
|
|
public string Username { get; set; } = string.Empty;
|
|
public string FullName { get; set; } = string.Empty;
|
|
public string Password { get; set; } = string.Empty;
|
|
public List<string> Permissions { get; set; } = new List<string>();
|
|
|
|
public User Clone()
|
|
{
|
|
return new User
|
|
{
|
|
Username = this.Username,
|
|
FullName = this.FullName,
|
|
Password = this.Password,
|
|
Permissions = new List<string>(this.Permissions)
|
|
};
|
|
}
|
|
}
|
|
}
|