Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4346d41

Browse files
committed
fixed OnSerialized and OnDeserialized in PyObject not being typed correctly
1 parent fe4c481 commit 4346d41

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/runtime/pyobject.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,13 +1426,13 @@ public override IEnumerable<string> GetDynamicMemberNames()
14261426
}
14271427

14281428
[OnSerialized]
1429-
protected virtual void OnSerialized(StreamingContext context)
1429+
void OnSerialized(StreamingContext context)
14301430
{
14311431
#warning check that these methods are inherited properly
14321432
new NewReference(this, canBeNull: true).Steal();
14331433
}
14341434
[OnDeserialized]
1435-
protected virtual void OnDeserialized(StreamingContext context)
1435+
void OnDeserialized(StreamingContext context)
14361436
{
14371437
if (IsDisposed) GC.SuppressFinalize(this);
14381438
}

0 commit comments

Comments
 (0)