Skip to content

Add missing pragma warning for FieldInterceptorProxyBuilder #1961

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 7, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/NHibernate/Proxy/FieldInterceptorProxyBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ internal static class FieldInterceptorProxyBuilder
private static readonly PropertyInfo AccessorTypeFieldInterceptorProperty =
FieldInterceptorAccessorType.GetProperty(nameof(IFieldInterceptorAccessor.FieldInterceptor));
private static readonly System.Type FieldInterceptorType = typeof(IFieldInterceptor);
// 6.0 TODO: Remove
private static readonly System.Type FieldInterceptorExtensionsType = typeof(FieldInterceptorExtensions);
#pragma warning disable 618
private static readonly MethodInfo FieldInterceptorInterceptMethod = FieldInterceptorType.GetMethod(nameof(IFieldInterceptor.Intercept));
#pragma warning restore 618
private static readonly MethodInfo FieldInterceptorMarkDirtyMethod = FieldInterceptorType.GetMethod(nameof(IFieldInterceptor.MarkDirty));
// 6.0 TODO: Remove and replace usages with FieldInterceptorInterceptMethod
private static readonly MethodInfo FieldInterceptorInterceptExtensionMethod = FieldInterceptorExtensionsType.GetMethod(nameof(FieldInterceptorExtensions.Intercept));
private static readonly System.Type AbstractFieldInterceptorType = typeof(AbstractFieldInterceptor);
private static readonly FieldInfo AbstractFieldInterceptorInvokeImplementationField =
Expand Down