FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

avoid generating and handling useless SerializationException when May… · pythonnet/pythonnet@d6a853f · GitHub

Repository navigation

Commit d6a853f

Browse files
committed
avoid generating and handling useless SerializationException when MaybeMethodBase contains no method
1 parent 7ed0c7a commit d6a853f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎src/runtime/StateSerialization/MaybeMethodBase.cs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ internal MaybeMethodBase(SerializationInfo serializationInfo, StreamingContext c
6868
name = serializationInfo.GetString(SerializationName);
6969
info = null;
7070
deserializationException = null;
71+
72+
if (name is null) return;
73+
7174
try
7275
{
7376
// Retrieve the reflected type of the method;

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL