File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 6
6
7
7
namespace NHibernate . Engine
8
8
{
9
+ //TODO 6.0: Remove IDeserializationCallback interface
9
10
/// <summary>
10
11
/// A globally unique identifier of an instance, consisting of the user-visible identifier
11
12
/// and the identifier space (eg. tablename)
12
13
/// </summary>
13
14
[ Serializable ]
14
- public sealed class EntityKey : ISerializable , IEquatable < EntityKey >
15
+ public sealed class EntityKey : IDeserializationCallback , ISerializable , IEquatable < EntityKey >
15
16
{
16
17
private readonly object identifier ;
17
18
private readonly IEntityPersister _persister ;
@@ -85,11 +86,15 @@ public override string ToString()
85
86
}
86
87
87
88
[ SecurityCritical ]
88
- public void GetObjectData ( SerializationInfo info , StreamingContext context )
89
+ void ISerializable . GetObjectData ( SerializationInfo info , StreamingContext context )
89
90
{
90
91
info . AddValue ( nameof ( Identifier ) , identifier ) ;
91
92
info . AddValue ( nameof ( _persister . Factory ) , _persister . Factory ) ;
92
93
info . AddValue ( nameof ( EntityName ) , EntityName ) ;
93
94
}
95
+
96
+ [ Obsolete ( "IDeserializationCallback interface has no usages and will be removed in a future version" ) ]
97
+ public void OnDeserialization ( object sender )
98
+ { }
94
99
}
95
100
}
You can’t perform that action at this time.
0 commit comments