Skip to content

Commit 572c254

Browse files
committed
Add missing pragma warning for FieldInterceptorProxyBuilder
1 parent add4a82 commit 572c254

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/NHibernate/Proxy/FieldInterceptorProxyBuilder.cs

+4
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,13 @@ internal static class FieldInterceptorProxyBuilder
1616
private static readonly PropertyInfo AccessorTypeFieldInterceptorProperty =
1717
FieldInterceptorAccessorType.GetProperty(nameof(IFieldInterceptorAccessor.FieldInterceptor));
1818
private static readonly System.Type FieldInterceptorType = typeof(IFieldInterceptor);
19+
// 6.0 TODO: Remove
1920
private static readonly System.Type FieldInterceptorExtensionsType = typeof(FieldInterceptorExtensions);
21+
#pragma warning disable 618
2022
private static readonly MethodInfo FieldInterceptorInterceptMethod = FieldInterceptorType.GetMethod(nameof(IFieldInterceptor.Intercept));
23+
#pragma warning restore 618
2124
private static readonly MethodInfo FieldInterceptorMarkDirtyMethod = FieldInterceptorType.GetMethod(nameof(IFieldInterceptor.MarkDirty));
25+
// 6.0 TODO: Remove and replace usages with FieldInterceptorInterceptMethod
2226
private static readonly MethodInfo FieldInterceptorInterceptExtensionMethod = FieldInterceptorExtensionsType.GetMethod(nameof(FieldInterceptorExtensions.Intercept));
2327
private static readonly System.Type AbstractFieldInterceptorType = typeof(AbstractFieldInterceptor);
2428
private static readonly FieldInfo AbstractFieldInterceptorInvokeImplementationField =

0 commit comments

Comments
 (0)