Skip to content

Repository files navigation

VCardParser

You can perform VCard decode and encode operations by using the contact class in the project.

The nuget packages is available here

How to use

  • NuGet Command: Install-Package VCardParser

  • Example

usingVCardParser.Helpers;usingVCardParser.Models;Contactcontact=newContact{FirstName="FirstName",LastName="LastName",FormattedName="FirstName LastName",Organization="Company",OrganizationPosition="Team",Title="Title",Photo="base64foto",Emails=newList<EMail>{newEMail{Address="email@mail.com",Type="Home"},newEMail{Address="email2@mail.com",Type="Company"},},Phones=newList<Phone>{newPhone{Number="01111111111",Type="Cell"},newPhone{Number="+902222222222",Type="Company"},}};// encode contact model for creating vcard filevarencodedVCard=contact.EncodeVCard();Console.WriteLine(encodedVCard);// exporting vcf fileFile.WriteAllText(Path.Combine(AppDomain.CurrentDomain.BaseDirectory,"filename.vcf"),encodedVCard);// decode vcard file from vcf file to contact modelencodedVCard.DecodeVCard();

About

No description, website, or topics provided.

Resources

Stars

24 stars

Watchers

7 watching

Forks

Releases

Packages

Used by

Contributors

Languages