예제 #1
0
        /// <summary>
        /// Create configuration object, which implements given Structure.
        /// Structure properties are initialized according to default values.
        /// </summary>
        /// <typeparam name="Structure">Interface which describes structure of configuration file.</typeparam>
        /// <returns>Configuration object.</returns>
        public static Structure CreateFromDefaults <Structure>()
            where Structure : IConfiguration
        {
            var parser = ConfigParser.ForWritingOnly();

            return(createConfig <Structure>(parser, false));
        }