예제 #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);
        }
예제 #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);
        }
예제 #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);
        }
예제 #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);
        }