From 49e5482b8f9d9801c8a83bdf334a21c34df0a899 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Sat, 30 Apr 2022 10:35:50 +0100 Subject: [PATCH] Document ArgumentNullException (#15) --- X10D/src/Collections/DictionaryExtensions.cs | 28 +++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/X10D/src/Collections/DictionaryExtensions.cs b/X10D/src/Collections/DictionaryExtensions.cs index c016654..fe0db27 100644 --- a/X10D/src/Collections/DictionaryExtensions.cs +++ b/X10D/src/Collections/DictionaryExtensions.cs @@ -1,4 +1,4 @@ -using System.Diagnostics.Contracts; +using System.Diagnostics.Contracts; using System.Web; namespace X10D.Collections; @@ -180,6 +180,7 @@ public static class DictionaryExtensions /// The type of the value element of the key/value pair. /// The source dictionary. /// A representing the dictionary as a key=value set, concatenated with ;. + /// is . [Pure] public static string ToConnectionString(this IEnumerable> source) { @@ -217,6 +218,11 @@ public static class DictionaryExtensions /// A transform function to apply to the of each element. /// /// A representing the dictionary as a key=value set, concatenated with ;. + /// + /// is . + /// -or- + /// is . + /// [Pure] public static string ToConnectionString(this IEnumerable> source, Func selector) @@ -263,6 +269,13 @@ public static class DictionaryExtensions /// A transform function to apply to the of each element. /// /// A representing the dictionary as a key=value set, concatenated with ;. + /// + /// is . + /// -or- + /// is . + /// -or- + /// is . + /// [Pure] public static string ToConnectionString(this IEnumerable> source, Func keySelector, Func valueSelector) @@ -308,6 +321,7 @@ public static class DictionaryExtensions /// The type of the value element of the key/value pair. /// The source dictionary. /// A representing the dictionary as a key=value set, concatenated with &. + /// is . [Pure] public static string ToGetParameters(this IEnumerable> source) where TKey : notnull @@ -337,6 +351,11 @@ public static class DictionaryExtensions /// A transform function to apply to the of each element. /// /// A representing the dictionary as a key=value set, concatenated with &. + /// + /// is . + /// -or- + /// is . + /// [Pure] public static string ToGetParameters(this IEnumerable> source, Func selector) @@ -376,6 +395,13 @@ public static class DictionaryExtensions /// A transform function to apply to the of each element. /// /// A representing the dictionary as a key=value set, concatenated with &. + /// + /// is . + /// -or- + /// is . + /// -or- + /// is . + /// [Pure] public static string ToGetParameters(this IEnumerable> source, Func keySelector, Func valueSelector)