Skip to content

Commit 121d710

Browse files
committed
Allow checking for custom handlers outside Dapper library (For use in SimpleCRUD extension)
1 parent 61fa083 commit 121d710

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
@@ -260,8 +260,12 @@ public static void RemoveTypeMap(Type type)
260260
/// <param name="type">The type to handle.</param>
261261
/// <param name="handler">The handler to process the <paramref name="type"/>.</param>
262262
public static void AddTypeHandler(Type type, ITypeHandler handler) => AddTypeHandlerImpl(type, handler, true);
263-
264-
internal static bool HasTypeHandler(Type type) => typeHandlers.ContainsKey(type);
263+
/// <summary>
264+
/// Determine if the specified type will be processed by a custom handler.
265+
/// </summary>
266+
/// <param name="type"></param>
267+
/// <returns></returns>
268+
public static bool HasTypeHandler(Type type) => typeHandlers.ContainsKey(type);
265269

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

0 commit comments

Comments
 (0)