示例#1
0
        /// <summary>
        /// Creates a new instance.
        /// </summary>
        /// <param name="options">The deserialization options</param>
        /// <param name="normalizer">The <see cref="IniContainer"/> normalizer</param>
        /// <exception cref="ArgumentNullException"></exception>
        public IniDeserializer(IniDeserializationOptions options, IIniNormalizer normalizer)
        {
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }
            if (normalizer == null)
            {
                throw new ArgumentNullException(nameof(normalizer));
            }

            Options    = options;
            Normalizer = normalizer;
        }
示例#2
0
 /// <summary>
 /// Creates a new instance.
 /// </summary>
 /// <param name="options">The deserialization options</param>
 /// <exception cref="ArgumentNullException"></exception>
 public IniDeserializer(IniDeserializationOptions options) : this(options, IniNormalizer.Default)
 {
 }