Skip to content

Commit d6a853f

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

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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)