Table of Contents

Class VcfHelper

Namespace
SunamoVcf
Assembly
SunamoVcf.dll

Provides methods for converting between SunamoVCard and VCard formats, as well as serializing and parsing VCF files.

public class VcfHelper
Inheritance
VcfHelper
Inherited Members
Extension Methods

Methods

ConvertTelephones(IEnumerable<Telephone>)

Converts a collection of Telephone objects to SunamoTelephone objects.

public static IEnumerable<SunamoTelephone> ConvertTelephones(IEnumerable<Telephone> enumerable)

Parameters

enumerable IEnumerable<Telephone>

The collection of Telephone objects to convert.

Returns

IEnumerable<SunamoTelephone>

A collection of SunamoTelephone objects.

Parse(string)

Parses a VCF file and returns a list of SunamoVCard objects.

public static List<SunamoVCard> Parse(string filePath)

Parameters

filePath string

The path to the VCF file to parse.

Returns

List<SunamoVCard>

A list of SunamoVCard objects parsed from the file.

Serialize(string, List<SunamoVCard>)

Serializes a list of SunamoVCard objects to a VCF file.

public static Task Serialize(string filePath, List<SunamoVCard> sunamoVCards)

Parameters

filePath string

The file path to write the VCF data to. The .vcf extension is appended automatically.

sunamoVCards List<SunamoVCard>

The list of SunamoVCard objects to serialize.

Returns

Task

SunamoVCardsToVCards(List<SunamoVCard>)

Converts a list of SunamoVCard objects to a list of VCard objects.

public static List<VCard> SunamoVCardsToVCards(List<SunamoVCard> sunamoVCards)

Parameters

sunamoVCards List<SunamoVCard>

The list of SunamoVCard objects to convert.

Returns

List<VCard>

A list of VCard objects.