Exemple #1
0
        /// <summary>
        /// Get bag residential object service.
        /// </summary>
        /// <param name="bag">Factory to extend.</param>
        /// <returns>See <see cref="Bag.ResidentialObjectService"/>.</returns>
        public static ResidentialObjectService ResidentialObjectService(this KadasterBag bag)
        {
            if (bag == null)
            {
                throw new ArgumentNullException(nameof(bag));
            }

            return(bag.GetService(BagService.ResidentialObject) as ResidentialObjectService);
        }
Exemple #2
0
        /// <summary>
        /// Get bag city service.
        /// </summary>
        /// <param name="bag">Factory to extend.</param>
        /// <returns>See <see cref="Bag.CityService"/>.</returns>
        public static CityService CityService(this KadasterBag bag)
        {
            if (bag == null)
            {
                throw new ArgumentNullException(nameof(bag));
            }

            return(bag.GetService(BagService.City) as CityService);
        }
Exemple #3
0
        /// <summary>
        /// Get bag public space service.
        /// </summary>
        /// <param name="bag">Factory to extend.</param>
        /// <returns>See <see cref="Bag.PublicSpaceService"/>.</returns>
        public static PublicSpaceService PublicSpaceService(this KadasterBag bag)
        {
            if (bag == null)
            {
                throw new ArgumentNullException(nameof(bag));
            }

            return(bag.GetService(BagService.PublicSpace) as PublicSpaceService);
        }
Exemple #4
0
        /// <summary>
        /// Get bag designation service.
        /// </summary>
        /// <param name="bag">Factory to extend.</param>
        /// <returns>See <see cref="Bag.DesignationService"/>.</returns>
        public static DesignationService DesignationService(this KadasterBag bag)
        {
            if (bag == null)
            {
                throw new ArgumentNullException(nameof(bag));
            }

            return(bag.GetService(BagService.Designation) as DesignationService);
        }