Skip to content

Commit ffc02eb

Browse files
authored
Merge pull request #1405 from brendangooden/allow-custom-type-checking-public
2 parents 54b1e4e + 9ad2895 commit ffc02eb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Dapper/SqlMapper.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,12 @@ public static void RemoveTypeMap(Type type)
262262
/// <param name="type">The type to handle.</param>
263263
/// <param name="handler">The handler to process the <paramref name="type"/>.</param>
264264
public static void AddTypeHandler(Type type, ITypeHandler handler) => AddTypeHandlerImpl(type, handler, true);
265-
266-
internal static bool HasTypeHandler(Type type) => typeHandlers.ContainsKey(type);
265+
/// <summary>
266+
/// Determine if the specified type will be processed by a custom handler.
267+
/// </summary>
268+
/// <param name="type">The type to handle.</param>
269+
/// <returns>Boolean value specifying whether the type will be processed by a custom handler.</returns>
270+
public static bool HasTypeHandler(Type type) => typeHandlers.ContainsKey(type);
267271

268272
/// <summary>
269273
/// Configure the specified type to be processed by a custom handler.

0 commit comments

Comments
 (0)