/// <summary> /// Creates a new instance of the <see cref="Contact"/> class from /// the specified <see cref="ContentLine"/>. /// </summary> /// <param name="content"> /// The <see cref="ContentLine"/> containing the contact. /// </param> public Contact(ContentLine content) : this() { Guard.IsNotNull(content, "content"); Guard.Require(content.Name.Equals("CONTACT", StringComparison.InvariantCultureIgnoreCase), "content", "Expected a CONTACT content line."); Text = content.ToText(); Uri = content.Parameters[ParameterName.AlternativeRepresentation]; }
/// <summary> /// Creates a new instance of the <see cref="VCardText"/> class from /// the specified <see cref="ContentLine"/>. /// </summary> /// <param name="content"> /// The <see cref="ContentLine"/> containing the property parameters. /// </param> public VCardText(ContentLine content) : base(content) { Value = content.ToText(); }