コード例 #1
0
		public GettextStringLocalizer(IGettextProcessor processor)
		{
			if (processor == null)
				throw new ArgumentNullException(nameof(processor));

			Processor = processor;
		}
コード例 #2
0
        public GettextStringLocalizer(IGettextProcessor processor)
        {
            if (processor == null)
            {
                throw new ArgumentNullException(nameof(processor));
            }

            Processor = processor;
        }
コード例 #3
0
        public StaticGettextStringLocalizer(IGettextProcessor processor, CultureInfo culture)
            : base(processor)
        {
            if (processor == null)
            {
                throw new ArgumentNullException(nameof(processor));
            }
            if (culture == null)
            {
                throw new ArgumentNullException(nameof(culture));
            }

            _culture = culture;
        }
コード例 #4
0
		public StaticGettextStringLocalizer(IGettextProcessor processor, CultureInfo culture)
			: base(processor)
		{
			if (processor == null)
				throw new ArgumentNullException(nameof(processor));
			if (culture == null)
				throw new ArgumentNullException(nameof(culture));

			_culture = culture;
		}