/// <summary>
        /// Creates an organization with collections of names, display names, and URIs
        /// </summary>
        /// <param name="names">A collection of <see cref="LocalizedName"/> for this instance.</param>
        /// <param name="displayNames">A collection of <see cref="LocalizedName"/> for this instance representing the display names.</param>
        /// <param name="urls">A collection of <see cref="LocalizedUri"/> for this instance.</param>
        /// <exception cref="System.ArgumentNullException">If any of the input parameters is null.</exception>
        public Organization(LocalizedEntryCollection<LocalizedName> names, LocalizedEntryCollection<LocalizedName> displayNames, LocalizedEntryCollection<LocalizedUri> urls)
        {
            if (names == null)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("names");
            }

            if (displayNames == null)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("displayNames");
            }

            if (urls == null)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("urls");
            }


            this.names = names;
            this.displayNames = displayNames;
            this.urls = urls;
        }
示例#2
0
        /// <summary>
        /// Creates an organization with collections of names, display names, and URIs
        /// </summary>
        /// <param name="names">A collection of <see cref="LocalizedName"/> for this instance.</param>
        /// <param name="displayNames">A collection of <see cref="LocalizedName"/> for this instance representing the display names.</param>
        /// <param name="urls">A collection of <see cref="LocalizedUri"/> for this instance.</param>
        /// <exception cref="System.ArgumentNullException">If any of the input parameters is null.</exception>
        public Organization(LocalizedEntryCollection <LocalizedName> names, LocalizedEntryCollection <LocalizedName> displayNames, LocalizedEntryCollection <LocalizedUri> urls)
        {
            if (names == null)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("names");
            }

            if (displayNames == null)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("displayNames");
            }

            if (urls == null)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("urls");
            }


            this.names        = names;
            this.displayNames = displayNames;
            this.urls         = urls;
        }