CalDavSynchronizer.ThoughtvCardWorkaround.vCardImprovedWriter.BuildProperties_N C# (CSharp) Метод

BuildProperties_N() приватный Метод

private BuildProperties_N ( vCardPropertyCollection properties, Thought.vCards.vCard card ) : void
properties vCardPropertyCollection
card Thought.vCards.vCard
Результат void
      private void BuildProperties_N(
          vCardPropertyCollection properties,
          vCard card)
      {

        // The property has the following components: Family Name,
        // Given Name, Additional Names, Name Prefix, and Name
        // Suffix.  Example:
        //
        //   N:Pinch;David
        //   N:Pinch;David;John
        //
        // The N property is required (see section 3.1.2 of RFC 2426).

        vCardValueCollection values = new vCardValueCollection(';');
        values.Add(card.FamilyName);
        values.Add(card.GivenName);
        values.Add(card.AdditionalNames);
        values.Add(card.NamePrefix);
        values.Add(card.NameSuffix);

        vCardProperty property = new vCardProperty("N", values);

        properties.Add(property);

      }