public DetailedDescription(DetailedDescriptionType detailedDescriptionType, string text) { if (text.Length > _TEXT_LIMIT) _text = text.Substring(0, _TEXT_LIMIT); else _text = text; _detailedDescriptionType = detailedDescriptionType; }
public DetailedDescription(XmlNode node) { _text = Utility.XMLHelper.GetText(node); try { _detailedDescriptionType = (DetailedDescriptionType)Enum.Parse(typeof(DetailedDescriptionType), Utility.XMLHelper.GetAttributeString(node, XMLNames._A_DetailedDescriptionType)); } catch (ArgumentException) { _detailedDescriptionType = DetailedDescriptionType.None; } }