Files
CodingSandbox/UserPermissionTest_CS_WinForms/User.cs
T
2026-05-31 15:08:26 +03:00

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)
};
}
}
}