/Examples/011 - Show client configuration through object model.linq
# · Unknown · 21 lines · 19 code · 2 blank · 0 comment · 0 complexity · 99525e683db195182afecb0a568b5da8 MD5 · raw file
- <Query Kind="Program">
- <Reference Relative="..\Mercurial.Net\bin\Debug\Mercurial.NET.dll">C:\Dev\VS.NET\Mercurial.Net\Mercurial.Net\bin\Debug\Mercurial.NET.dll</Reference>
- <Namespace>Mercurial</Namespace>
- </Query>
-
- // *****************************************************
- // *
- // * Executes the showconfig command and dumps the results
- // *
- // ***********************
-
- void Main()
- {
- foreach (var section in Client.Configuration.Sections)
- {
- Client.Configuration
- .Where(e => e.Section == section)
- .Select(e => new { e.Name, e.Value })
- .Dump(section);
- }
- }