25 lines
462 B
C#
25 lines
462 B
C#
using System;
|
|
|
|
namespace UserPermissionTest_CS_WinForms
|
|
{
|
|
public class Permission
|
|
{
|
|
public int Id { get; set; }
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
public override string ToString()
|
|
{
|
|
return Name;
|
|
}
|
|
|
|
public Permission Clone()
|
|
{
|
|
return new Permission
|
|
{
|
|
Id = this.Id,
|
|
Name = this.Name
|
|
};
|
|
}
|
|
}
|
|
}
|