コード例 #1
0
ファイル: ConfigurationLoader.cs プロジェクト: ssh352/runner
        /// <summary>
        /// Loads a configuration using the default name.
        /// </summary>
        /// <typeparam name="T">The implementation of Algorithm configuration.</typeparam>
        /// <returns>Loaded algorithm configuration.</returns>
        private static T LoadConfiguration <T>()
            where T : AlgorithmConfiguration
        {
            string filename = Reflections.GetMatchingAlgorithmType(typeof(T)).Name + ".yaml";

            return(LoadConfiguration <T>(filename));
        }