Skip to content

Commit 21359b2

Browse files
committed
Remove breaking changes
1 parent 4227bf0 commit 21359b2

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/NHibernate/Intercept/IFieldInterceptor.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ public interface IFieldInterceptor
4141

4242
/// <summary> Get the MappedClass (field container).</summary>
4343
System.Type MappedClass { get; }
44-
45-
void ClearInitializedLazyFields();
4644
}
4745

4846
public static class FieldInterceptorExtensions
@@ -76,5 +74,14 @@ public static object Intercept(this IFieldInterceptor interceptor, object target
7674
return interceptor.Intercept(target, fieldName, value);
7775
#pragma warning restore 618
7876
}
77+
78+
// 6.0 TODO: merge into IFieldInterceptor
79+
public static void ClearInitializedLazyFields(this IFieldInterceptor interceptor)
80+
{
81+
if (interceptor is AbstractFieldInterceptor fieldInterceptor)
82+
{
83+
fieldInterceptor.ClearInitializedLazyFields();
84+
}
85+
}
7986
}
8087
}

0 commit comments

Comments
 (0)