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