Skip to content

Commit f9843e4

Browse files
committed
updating docs
1 parent 559a473 commit f9843e4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

LibGit2Sharp/ConfigurationExtensions.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public static ConfigurationEntry<T> Get<T>(this Configuration config, string fir
7474
/// <typeparam name="T">The configuration value type.</typeparam>
7575
/// <param name="config">The configuration being worked with.</param>
7676
/// <param name="key">The key</param>
77-
/// <returns>The configuration value, or the default.</returns>
77+
/// <returns>The configuration value, or the default value for the selected <see cref="T"/>if not found</returns>
7878
public static T GetValueOrDefault<T>(this Configuration config, string key)
7979
{
8080
return ValueOrDefault(config.Get<T>(key), default(T));
@@ -88,7 +88,7 @@ public static T GetValueOrDefault<T>(this Configuration config, string key)
8888
/// <param name="config">The configuration being worked with.</param>
8989
/// <param name="key">The key</param>
9090
/// <param name="defaultValue">The default value if the key is not set.</param>
91-
/// <returns>The configuration value, or the default.</returns>
91+
/// <returns>The configuration value, or the default value</returns>
9292
public static T GetValueOrDefault<T>(this Configuration config, string key, T defaultValue)
9393
{
9494
return ValueOrDefault(config.Get<T>(key), defaultValue);
@@ -101,7 +101,7 @@ public static T GetValueOrDefault<T>(this Configuration config, string key, T de
101101
/// <param name="config">The configuration being worked with.</param>
102102
/// <param name="key">The key.</param>
103103
/// <param name="level">The configuration file into which the key should be searched for.</param>
104-
/// <returns>The configuration value, or the default.</returns>
104+
/// <returns>The configuration value, or the default value for <see cref="T"/>if not found</returns>
105105
public static T GetValueOrDefault<T>(this Configuration config, string key, ConfigurationLevel level)
106106
{
107107
return ValueOrDefault(config.Get<T>(key, level), default(T));
@@ -112,11 +112,11 @@ public static T GetValueOrDefault<T>(this Configuration config, string key, Conf
112112
/// or <paramref name="defaultValue" /> if the key is not set.
113113
/// </summary>
114114
/// <typeparam name="T">The configuration value type.</typeparam>
115-
/// <param name="config">The configuration being worked with.</param>
115+
/// <param name="config">The configuration being worked with.</param>
116116
/// <param name="key">The key.</param>
117117
/// <param name="level">The configuration file into which the key should be searched for.</param>
118118
/// <param name="defaultValue">The selector used to generate a default value if the key is not set.</param>
119-
/// <returns>The configuration value, or the default.</returns>
119+
/// <returns>The configuration value, or the default value.</returns>
120120
public static T GetValueOrDefault<T>(this Configuration config, string key, ConfigurationLevel level, T defaultValue)
121121
{
122122
return ValueOrDefault(config.Get<T>(key, level), defaultValue);
@@ -128,7 +128,7 @@ public static T GetValueOrDefault<T>(this Configuration config, string key, Conf
128128
/// <typeparam name="T">The configuration value type.</typeparam>
129129
/// <param name="config">The configuration being worked with.</param>
130130
/// <param name="keyParts">The key parts.</param>
131-
/// <returns>The configuration value, or the default.</returns>
131+
/// <returns>The configuration value, or the default value for <see cref="T"/> if not found</returns>
132132
public static T GetValueOrDefault<T>(this Configuration config, string[] keyParts)
133133
{
134134
return ValueOrDefault(config.Get<T>(keyParts), default(T));
@@ -142,7 +142,7 @@ public static T GetValueOrDefault<T>(this Configuration config, string[] keyPart
142142
/// <param name="config">The configuration being worked with.</param>
143143
/// <param name="keyParts">The key parts.</param>
144144
/// <param name="defaultValue">The default value if the key is not set.</param>
145-
/// <returns>The configuration value, or the default.</returns>
145+
/// <returns>The configuration value, or the default value.</returns>
146146
public static T GetValueOrDefault<T>(this Configuration config, string[] keyParts, T defaultValue)
147147
{
148148
return ValueOrDefault(config.Get<T>(keyParts), defaultValue);
@@ -156,7 +156,7 @@ public static T GetValueOrDefault<T>(this Configuration config, string[] keyPart
156156
/// <param name="firstKeyPart">The first key part.</param>
157157
/// <param name="secondKeyPart">The second key part.</param>
158158
/// <param name="thirdKeyPart">The third key part.</param>
159-
/// <returns>The configuration value, or the default.</returns>
159+
/// <returns>The configuration value, or the default value for the selected <see cref="T"/>if not found</returns>
160160
public static T GetValueOrDefault<T>(this Configuration config, string firstKeyPart, string secondKeyPart, string thirdKeyPart)
161161
{
162162
return ValueOrDefault(config.Get<T>(firstKeyPart, secondKeyPart, thirdKeyPart), default(T));

0 commit comments

Comments
 (0)