Skip to content

Commit 0afd9d0

Browse files
committed
Revert disabling of Object Reference implementation by EntityReference
has to ignore compile warning
1 parent f77ceef commit 0afd9d0

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Orm/Xtensive.Orm/Orm/Serialization/EntityReference.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,19 @@ namespace Xtensive.Orm.Serialization
1717
/// </summary>
1818
[Serializable]
1919
internal sealed class EntityReference :
20-
#if !NET8_0_OR_GREATER
20+
#pragma warning disable SYSLIB0050 // Type or member is obsolete
2121
IObjectReference,
22-
#endif
22+
#pragma warning restore SYSLIB0050 // Type or member is obsolete
2323
ISerializable
2424
{
2525
private const string KeyValueName = WellKnown.KeyFieldName;
2626
private readonly Entity entity;
2727

28-
#if !NET8_0_OR_GREATER
2928
[SecurityCritical]
3029
public object GetRealObject(StreamingContext context)
3130
{
3231
return entity;
3332
}
34-
#endif
3533

3634
[SecurityCritical]
3735
public void GetObjectData(SerializationInfo info, StreamingContext context)

0 commit comments

Comments
 (0)