BlogEngine.Core/Role.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Xml.Serialization;
namespace BlogEngine.Core
{
/// <summary>
///
/// </summary>
public class Role
{
private string _Name;
private List<string> _UserNames;
/// <summary>
/// Initializes a new instance of the <see cref="Role"/> class.
/// </summary>
/// <param name="name">A name.</param>
public Role(string name)
{
_Name = name;
_UserNames = new List<string>();
}
/// <summary>
/// Initializes a new instance of the <see cref="Role"/> class.
/// </summary>
public Role()
{
_UserNames = new List<string>();
}
/// <summary>
/// Initializes a new instance of the <see cref="Role"/> class.
/// </summary>
/// <param name="name">A name.</param>
/// <param name="userNames">A list of users in role.</param>
public Role(string name, List<string> userNames)
{
_Name = name;
_UserNames = userNames;
}
/// <summary>
/// Gets or sets the name.
/// </summary>
/// <value>The name.</value>
public string Name
{
get { return _Name; }
set { _Name = value; }
}
/// <summary>
/// Gets the users.
/// </summary>
/// <value>The users.</value>
public List<string> Users
后面还有 8 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
