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

Skip to content

Commit 1002105

Browse files
committed
fixup! Add nested class support
1 parent b59e2bb commit 1002105

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/StateSerialization/RuntimeData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ public void GetObjectData(object obj, SerializationInfo info, StreamingContext c
325325

326326
MaybeType type = obj.GetType();
327327

328-
if (type.Value.CustomAttributes.Any((attr) => attr.AttributeType == typeof(NonSerializedAttribute)))
328+
if (type.Value.CustomAttributes.Any((attr) => attr.AttributeType == typeof(PyNet_NotSerializedAttribute)))
329329
{
330330
// Don't serialize a _NotSerialized. Serialize the base type, and deserialize as a _NotSerialized
331331
type = type.Value.BaseType;

0 commit comments

Comments
 (0)