Skip to content

Commit cc1222c

Browse files
committed
Mark GetObjectData of AbstractProxyFactory as [SecurityCritical]
1 parent 28c384c commit cc1222c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/NHibernate/Proxy/AbstractProxyFactory.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.Collections.Generic;
33
using System.Reflection;
44
using System.Runtime.Serialization;
5+
using System.Security;
56
using NHibernate.Engine;
67
using NHibernate.Type;
78
using NHibernate.Util;
@@ -68,6 +69,7 @@ public virtual object GetFieldInterceptionProxy(object instanceToWrap)
6869
throw new NotSupportedException();
6970
}
7071

72+
[SecurityCritical]
7173
public virtual void GetObjectData(SerializationInfo info, StreamingContext context)
7274
{
7375
info.AddValue(nameof(EntityName), EntityName);

0 commit comments

Comments
 (0)