コード例 #1
0
        /// <summary>Creates an instance for the given language.</summary>
        /// <param name="culture">The culture.</param>
        /// <returns>A repository.</returns>
        public IMapNameRepository ForCulture(CultureInfo culture)
        {
            IMapNameRepository repository = new MapNameRepository(this.serviceClient);

            repository.Culture = culture;
            return(repository);
        }
コード例 #2
0
        /// <summary>Creates an instance for the given language.</summary>
        /// <param name="culture">The culture.</param>
        /// <returns>A repository.</returns>
        public IMapNameRepository ForCulture(CultureInfo culture)
        {
            Contract.Ensures(Contract.Result <IMapNameRepository>() != null);
            IMapNameRepository repository = new MapNameRepository(this.serviceClient);

            repository.Culture = culture;
            return(repository);
        }