Skip to content

Commit 13565fb

Browse files
authored
Allow internal entity classess/interfaces in .NET Standard 2.0 for field interceptor (#3368)
1 parent 3186197 commit 13565fb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/NHibernate/Proxy/FieldInterceptorProxyBuilder.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,9 @@ public static TypeInfo CreateProxyType(System.Type baseType)
5757

5858
var assemblyBuilder = ProxyBuilderHelper.DefineDynamicAssembly(AppDomain.CurrentDomain, name);
5959

60-
#if NETFX || NETCOREAPP2_0_OR_GREATER || NETSTANDARD2_1_OR_GREATER
6160
if (!baseType.IsVisible)
6261
ProxyBuilderHelper.GenerateInstanceOfIgnoresAccessChecksToAttribute(assemblyBuilder, baseType.Assembly.GetName().Name);
63-
#endif
62+
6463
var moduleBuilder = ProxyBuilderHelper.DefineDynamicModule(assemblyBuilder, moduleName);
6564

6665
const TypeAttributes typeAttributes = TypeAttributes.AutoClass | TypeAttributes.Class | TypeAttributes.Public | TypeAttributes.BeforeFieldInit;

0 commit comments

Comments
 (0)