@@ -111,7 +111,8 @@ public static bool AddDistinct<TKey, TValue>(this IDictionary<TKey, List<TValue>
111111 /// <param name="key">Unique Key</param>
112112 /// <param name="value">Value to add</param>
113113 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
114- public static void AddDistinct < TKey , TValue > ( this Dictionary < TKey , TValue > dic , TKey key , TValue value ) where TKey : notnull
114+ public static void AddDistinct < TKey , TValue > ( this Dictionary < TKey , TValue > dic , TKey key , TValue value )
115+ where TKey : notnull
115116 {
116117 dic [ key ] = value ;
117118 }
@@ -126,7 +127,8 @@ public static void AddDistinct<TKey, TValue>(this Dictionary<TKey, TValue> dic,
126127 /// <param name="key">The key of the key-value pair to add.</param>
127128 /// <param name="value">The value of the key-value pair to add.</param>
128129 /// <exception cref="ArgumentException">Thrown if the key or value already exist in the dictionary.</exception>
129- public static void AddDistinctKeyValue < TKey , TValue > ( this Dictionary < TKey , TValue > dic , TKey key , TValue value ) where TKey : notnull
130+ public static void AddDistinctKeyValue < TKey , TValue > ( this Dictionary < TKey , TValue > dic , TKey key , TValue value )
131+ where TKey : notnull
130132 {
131133 if ( dic . ContainsKey ( key ) )
132134 {
@@ -150,7 +152,8 @@ public static void AddDistinctKeyValue<TKey, TValue>(this Dictionary<TKey, TValu
150152 /// <typeparam name="TValue">Internal Value</typeparam>
151153 /// <param name="dic">Internal Target Dictionary</param>
152154 /// <returns>Sorted Dictionary</returns>
153- public static Dictionary < TKey , TValue > Sort < TKey , TValue > ( this Dictionary < TKey , TValue > dic ) where TKey : notnull
155+ public static Dictionary < TKey , TValue > Sort < TKey , TValue > ( this Dictionary < TKey , TValue > dic )
156+ where TKey : notnull
154157 {
155158 var sortedPairs = dic . OrderBy ( pair => pair . Key ) . ToList ( ) ;
156159
@@ -190,7 +193,8 @@ public static bool IsNullOrEmpty<TKey, TValue>([NotNullWhen(false)] this IDictio
190193 /// <returns>False if one is missing. <see cref="bool" />.</returns>
191194 /// <typeparam name="TKey">Internal Key</typeparam>
192195 /// <typeparam name="TValue">Internal Value</typeparam>
193- public static bool ContainsKeys < TKey , TValue > ( this Dictionary < TKey , TValue > dic , IEnumerable < TKey > enumerable ) where TKey : notnull
196+ public static bool ContainsKeys < TKey , TValue > ( this Dictionary < TKey , TValue > dic , IEnumerable < TKey > enumerable )
197+ where TKey : notnull
194198 {
195199 return enumerable . All ( dic . ContainsKey ) ;
196200 }
@@ -292,7 +296,8 @@ public static Dictionary<TKey, TValue> GetDictionaryByValues<TKey, TValue>(this
292296 /// <typeparam name="TValue">Internal Value</typeparam>
293297 /// <param name="dic">Internal Target Dictionary</param>
294298 /// <returns>Clone of the Input Dictionary</returns>
295- public static Dictionary < TKey , TValue > ? Clone < TKey , TValue > ( this IDictionary < TKey , TValue > dic ) where TKey : notnull
299+ public static Dictionary < TKey , TValue > ? Clone < TKey , TValue > ( this IDictionary < TKey , TValue > dic )
300+ where TKey : notnull
296301 {
297302 return dic ? . ToDictionary ( dctClone => dctClone . Key , dctClone => dctClone . Value ) ;
298303 }
0 commit comments