/// <summary> /// 设置值 /// </summary> /// <param name="value">值</param> protected override void InitValue(object value) { WrongValueFormat = value != null && !(value is IEnumerable <string>); InputMaxLength = PropertyContent.Attributes.Get <Annotations.InputMaxLengthAttribute>(); Value = new HashSet <string>(); foreach (var item in value.GetListString()) { Value.Add(item); } }
/// <summary> /// 设置值 /// </summary> /// <param name="value">值</param> protected override void InitValue(object value) { InputMaxLength = PropertyContent.Attributes.Get <Annotations.InputMaxLengthAttribute>(); Value = value.GetNotNullString(); }