/// <summary> /// This version of the constructor is used when parsing vCard data that is to be stored in an existing /// vCard instance. /// </summary> /// <remarks>The properties in the passed vCard will be cleared</remarks> /// <param name="vCard">The existing vCard instance</param> /// <exception cref="ArgumentNullException">This is thrown if the specified vCard object is null</exception> protected VCardParser(VCard vCard) : this() { currentCard = vCard ?? throw new ArgumentNullException(nameof(vCard), LR.GetString("ExParseNullObject", "vCard")); currentCard.ClearProperties(); vCards.Add(vCard); }
/// <summary> /// This version of the constructor is used when parsing vCard data that is to be stored in an existing /// vCard instance. /// </summary> /// <remarks>The properties in the passed vCard will be cleared</remarks> /// <param name="vCard">The existing vCard instance</param> /// <exception cref="ArgumentNullException">This is thrown if the specified vCard object is null</exception> protected VCardParser(VCard vCard) : this() { if (vCard == null) { throw new ArgumentNullException("vCard", LR.GetString("ExParseNullObject", "vCard")); } currentCard = vCard; currentCard.ClearProperties(); vCards.Add(vCard); }