File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -259,8 +259,19 @@ public static void DeregisterTypeStringConverter(Type type)
259259 s_typeStringConverters . Remove ( type ) ;
260260 }
261261
262- internal static ITypeStringConverter FindTypeStringConverter ( Type type )
262+ /// <summary>
263+ /// Looks up a registered type converter for a specific type.
264+ /// </summary>
265+ /// <param name="type">The type whose converter to look up.</param>
266+ /// <returns>A reference to the registered converter, if found; null otherwise.</returns>
267+ /// <exception cref="ArgumentNullException">When <paramref name="type"/>is null.</exception>
268+ public static ITypeStringConverter FindTypeStringConverter ( Type type )
263269 {
270+ if ( type == null )
271+ {
272+ throw new ArgumentNullException ( nameof ( type ) ) ;
273+ }
274+
264275 if ( type . IsEnum )
265276 {
266277 type = typeof ( Enum ) ;
You can’t perform that action at this time.
0 commit comments