internal static void Convert(Stream dataStream, Encoding encoding, Contact contact, OutboundConversionOptions options, ConversionLimitsTracker limitsTracker) { Util.ThrowOnNullArgument(options, "options"); Util.ThrowOnNullOrEmptyArgument(options.ImceaEncapsulationDomain, "options.ImceaEncapsulationDomain"); ContactWriter contactWriter = new ContactWriter(dataStream, encoding); contactWriter.StartVCard(); OutboundVCardConverter.PropertyExporter.Context context = new OutboundVCardConverter.PropertyExporter.Context(encoding, options, limitsTracker); foreach (OutboundVCardConverter.PropertyExporter propertyExporter in OutboundVCardConverter.exporters) { propertyExporter.Export(contactWriter, contact, context); } contactWriter.EndVCard(); }