Class ConfigFile
Assembly: Acoustics.Shared.dll
Syntax
public static class ConfigFile
Fields
|
Improve this Doc
View Source
Defaults
Declaration
public static readonly Dictionary<Type, string> Defaults
Field Value
|
Improve this Doc
View Source
ProfilesKey
Declaration
public const string ProfilesKey = "Profiles"
Field Value
Properties
|
Improve this Doc
View Source
ConfigFolder
Declaration
public static string ConfigFolder { get; }
Property Value
Methods
|
Improve this Doc
View Source
Default<T>()
Declaration
public static FileInfo Default<T>()
Returns
Type Parameters
|
Improve this Doc
View Source
Deserialize(FileInfo)
Declaration
public static Config Deserialize(FileInfo file)
Parameters
Returns
|
Improve this Doc
View Source
Deserialize(String)
Declaration
public static Config Deserialize(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
|
Improve this Doc
View Source
Deserialize<T>(FileInfo)
Declaration
public static T Deserialize<T>(FileInfo file)
where T : IConfig, new()
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
Deserialize<T>(String)
Declaration
public static T Deserialize<T>(string path)
where T : IConfig, new()
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
Type Parameters
|
Improve this Doc
View Source
GetProfile<TConfig>(TConfig, String)
Declaration
public static Config GetProfile<TConfig>(TConfig configuration, string profileName)
where TConfig : Config
Parameters
Type |
Name |
Description |
TConfig |
configuration |
|
String |
profileName |
|
Returns
Type Parameters
|
Improve this Doc
View Source
GetProfileNames<TConfig>(TConfig)
Declaration
public static string[] GetProfileNames<TConfig>(TConfig configuration)
where TConfig : Config
Parameters
Type |
Name |
Description |
TConfig |
configuration |
|
Returns
Type Parameters
|
Improve this Doc
View Source
HasProfiles(Config)
Declaration
public static bool HasProfiles(Config configuration)
Parameters
Type |
Name |
Description |
Config |
configuration |
|
Returns
|
Improve this Doc
View Source
Resolve(FileInfo, DirectoryInfo[])
Declaration
public static FileInfo Resolve(FileInfo file, params DirectoryInfo[] searchPaths)
Parameters
Returns
|
Improve this Doc
View Source
Resolve(String, DirectoryInfo[])
Declaration
public static FileInfo Resolve(string file, params DirectoryInfo[] searchPaths)
Parameters
Returns
|
Improve this Doc
View Source
ResolveOrDefault<T>(FileInfo, DirectoryInfo[])
Declaration
public static FileInfo ResolveOrDefault<T>(FileInfo file, params DirectoryInfo[] searchPaths)
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
ResolveOrDefault<T>(String, DirectoryInfo[])
Declaration
public static FileInfo ResolveOrDefault<T>(string path, params DirectoryInfo[] searchPaths)
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
TryGetProfile<TConfig>(TConfig, String, out Config)
Declaration
public static bool TryGetProfile<TConfig>(TConfig configuration, string profileName, out Config profile)
where TConfig : Config
Parameters
Type |
Name |
Description |
TConfig |
configuration |
|
String |
profileName |
|
Config |
profile |
|
Returns
Type Parameters
|
Improve this Doc
View Source
TryResolve(String, IEnumerable<DirectoryInfo>, out FileInfo)
Declaration
public static bool TryResolve(string file, IEnumerable<DirectoryInfo> searchPaths, out FileInfo configFile)
Parameters
Returns