Use ContactData class to save the contact details such as name, birthdate, phone number etc.
Exxample:
private void OnGenerate(object sender, EventArgs e)
{
PayloadGenerator.ContactData generator = new PayloadGenerator.ContactData(PayloadGenerator.ContactData.ContactOutputType.VCard3,
txtName.Text, "", mobilePhone: txtMobileNo.Text);
QRCodeGenerator qrGenerator = new QRCodeGenerator();
QRCodeData qrCodeData = qrGenerator.CreateQrCode(generator.ToString(), QRCodeGenerator.ECCLevel.Q);
QRCode qrCode = new QRCode(qrCodeData);
using (Bitmap bitMap = qrCode.GetGraphic(4))
{
using (MemoryStream ms = new MemoryStream())
{
bitMap.Save(ms, ImageFormat.Png);
pictureBox1.Height = 300;
pictureBox1.Width = 300;
pictureBox1.Image = Image.FromStream(ms);
}
}
}