コード例 #1
0
 /// <summary>
 /// Create an instance of <see cref="PluginConfig" /> from a file.
 /// </summary>
 /// <param name="filePath">The path the config file.</param>
 /// <returns></returns>
 public static PluginConfig CreateFromFile(string filePath)
 {
     using (var reader = File.OpenText(filePath))
     {
         return(PluginConfig.CreateFromReader(reader));
     }
 }