Skip to content

Commit fb392c2

Browse files
committed
Surfacing static Mapper.ResetDefaultInstance() method
1 parent 42e01cb commit fb392c2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

AgileMapper/Mapper.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,11 @@ public static IFlatteningSelector<TSource> Flatten<TSource>(TSource source) wher
157157
/// <returns>A TargetSelector with which to specify the type of mapping to perform.</returns>
158158
public static ITargetSelector<TSource> Map<TSource>(TSource source) => Default.Map(source);
159159

160-
internal static void ResetDefaultInstance() => Default.Dispose();
160+
/// <summary>
161+
/// Removes the default Mapper's cached data. Can be useful when testing code which uses
162+
/// the static Mapper API.
163+
/// </summary>
164+
public static void ResetDefaultInstance() => Default.Dispose();
161165

162166
#endregion
163167

0 commit comments

Comments
 (0)