25 lines
675 B
C#
25 lines
675 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<int> Permissions { get; set; } = new List<int>();
|
|
|
|
public User Clone()
|
|
{
|
|
return new User
|
|
{
|
|
Username = this.Username,
|
|
FullName = this.FullName,
|
|
Password = this.Password,
|
|
Permissions = new List<int>(this.Permissions)
|
|
};
|
|
}
|
|
}
|
|
}
|