Backup/Discuz.Entity/Space/UserPref.cs

(开头部分) 6KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using Discuz.Common;

namespace Discuz.Entity
{
	/// <summary>
	/// 用户使用偏好
	/// </summary>
	public class UserPref
	{
		public UserPref()
		{

		}

		private string _name = string.Empty;
		private string _displayName = string.Empty;
		private UserPrefDataType _dataType = UserPrefDataType.StringType;
		private string _defaultValue = string.Empty;
		private string _urlParam = string.Empty;
		private bool _required = false;

#if NET1
		private EnumValueCollection _enumValues = null;
#else
        private Discuz.Common.Generic.List<EnumValue> _enumValues = null;
#endif
		/// <summary>
		/// 名称
		/// </summary>
		public string Name
		{
			get { return _name; }
			set { _name = value; }
		}

		/// <summary>
		/// 显示名称
		/// </summary>
		public string DisplayName
		{
			get { return _displayName; }
			set { _displayName = value; }
		}

		/// <summary>
		/// 数据类型
		/// </summary>
		public UserPrefDataType DataType
		{
			get { return _dataType; }
			set	{ _dataType = value;}
		}

		/// <summary>
		/// 默认值
		/// </summary>
		public string DefaultValue
		{
			get { return _defaultValue; }
后面还有 109 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。