예제 #1
0
        public static void Equals(vCardNoteCollection nc1, vCardNoteCollection nc2)
        {
            Assert.AreEqual(
                nc1.Count,
                nc2.Count,
                "The two note collections have a different count.");

            for (int index = 0; index < nc1.Count; index++)
            {
                Equals(nc1[index], nc2[index]);
            }
        }
예제 #2
0
        public static void Equals(vCardNoteCollection nc1, vCardNoteCollection nc2)
        {

            Assert.AreEqual(
                nc1.Count,
                nc2.Count,
                "The two note collections have a different count.");

            for (int index = 0; index < nc1.Count; index++)
            {
                Equals(nc1[index], nc2[index]);
            }

        }
예제 #3
0
        /// <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();
        }