/// <summary> /// Initializes a new instance of the <see cref="vCard"/> class. /// </summary> public vCard() { // Per Microsoft best practices, string properties should // never return null. String properties should always // return String.Empty. this.additionalNames = string.Empty; this.department = string.Empty; this.displayName = string.Empty; this.familyName = string.Empty; this.formattedName = string.Empty; this.givenName = string.Empty; this.mailer = string.Empty; this.namePrefix = string.Empty; this.nameSuffix = string.Empty; this.office = string.Empty; this.organization = string.Empty; this.productId = string.Empty; this.role = string.Empty; this.timeZone = string.Empty; this.title = string.Empty; this.uniqueId = string.Empty; this.categories = new List <string>(); this.certificates = new vCardCertificateCollection(); this.deliveryAddresses = new vCardDeliveryAddressCollection(); this.deliveryLabels = new vCardDeliveryLabelCollection(); this.emailAddresses = new vCardEmailAddressCollection(); this.nicknames = new List <string>(); this.notes = new vCardNoteCollection(); this.phones = new vCardPhoneCollection(); this.photos = new vCardPhotoCollection(); this.sources = new vCardSourceCollection(); this.websites = new vCardWebsiteCollection(); }
/// <summary> /// Initializes a new instance of the <see cref="vCard"/> class. /// </summary> public vCard() { // Per Microsoft best practices, string properties should // never return null. String properties should always // return String.Empty. additionalNames = string.Empty; department = string.Empty; displayName = string.Empty; familyName = string.Empty; formattedName = string.Empty; givenName = string.Empty; mailer = string.Empty; namePrefix = string.Empty; nameSuffix = string.Empty; office = string.Empty; organization = string.Empty; productId = string.Empty; role = string.Empty; timeZone = string.Empty; title = string.Empty; uniqueId = string.Empty; categories = new StringCollection(); certificates = new vCardCertificateCollection(); deliveryAddresses = new vCardDeliveryAddressCollection(); deliveryLabels = new vCardDeliveryLabelCollection(); emailAddresses = new vCardEmailAddressCollection(); nicknames = new StringCollection(); notes = new vCardNoteCollection(); phones = new vCardPhoneCollection(); photos = new vCardPhotoCollection(); sources = new vCardSourceCollection(); websites = new vCardWebsiteCollection(); }
public static void Equals( vCardDeliveryLabelCollection dlc1, vCardDeliveryLabelCollection dlc2) { Assert.AreEqual( dlc1.Count, dlc2.Count, "vCardDeliveryLabelCollection.Count differs."); for (int index = 0; index < dlc1.Count; index++) { Equals( dlc1[index], dlc2[index]); } }
/// <summary> /// Initializes a new instance of the <see cref="vCard"/> class. /// </summary> public vCard() { // Per Microsoft best practices, string properties should // never return null. String properties should always // return String.Empty. this.additionalNames = string.Empty; this.department = string.Empty; this.displayName = string.Empty; this.familyName = string.Empty; this.formattedName = string.Empty; this.givenName = string.Empty; this.mailer = string.Empty; this.namePrefix = string.Empty; this.nameSuffix = string.Empty; this.office = string.Empty; this.organization = string.Empty; this.productId = string.Empty; this.role = string.Empty; this.timeZone = string.Empty; this.title = string.Empty; this.uniqueId = string.Empty; this.categories = new StringCollection(); this.certificates = new vCardCertificateCollection(); this.deliveryAddresses = new vCardDeliveryAddressCollection(); this.deliveryLabels = new vCardDeliveryLabelCollection(); this.emailAddresses = new vCardEmailAddressCollection(); this.nicknames = new StringCollection(); this.notes = new vCardNoteCollection(); this.phones = new vCardPhoneCollection(); this.photos = new vCardPhotoCollection(); this.sources = new vCardSourceCollection(); this.websites = new vCardWebsiteCollection(); this.ims = new vCardIMPPCollection(); this.sps = new vCardSocialProfileCollection(); }