コード例 #1
0
        public SiteMapChildStateFactory(
            IGenericDictionaryFactory genericDictionaryFactory,
            ISiteMapNodeCollectionFactory siteMapNodeCollectionFactory,
            IUrlKeyFactory urlKeyFactory
            )
        {
            if (genericDictionaryFactory == null)
                throw new ArgumentNullException("genericDictionaryFactory");
            if (siteMapNodeCollectionFactory == null)
                throw new ArgumentNullException("siteMapNodeCollectionFactory");
            if (urlKeyFactory == null)
                throw new ArgumentNullException("urlKeyFactory");

            this.genericDictionaryFactory = genericDictionaryFactory;
            this.siteMapNodeCollectionFactory = siteMapNodeCollectionFactory;
            this.urlKeyFactory = urlKeyFactory;
        }
コード例 #2
0
        public SiteMapChildStateFactory(
            IGenericDictionaryFactory genericDictionaryFactory,
            ISiteMapNodeCollectionFactory siteMapNodeCollectionFactory
            )
        {
            if (genericDictionaryFactory == null)
            {
                throw new ArgumentNullException("genericDictionaryFactory");
            }
            if (siteMapNodeCollectionFactory == null)
            {
                throw new ArgumentNullException("siteMapNodeCollectionFactory");
            }

            this.genericDictionaryFactory     = genericDictionaryFactory;
            this.siteMapNodeCollectionFactory = siteMapNodeCollectionFactory;
        }