Skip to content

Commit

Permalink
Marked InvalidManagedNameException as serializable (#2732)
Browse files Browse the repository at this point in the history
* Marked `InvalidManagedNameException` as serializable.
  • Loading branch information
Haplois authored Feb 4, 2021
1 parent 6622e7b commit d138fb9
Showing 1 changed file with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,23 @@ namespace Microsoft.TestPlatform.AdapterUtilities.ManagedNameUtilities
{
using System;

public class InvalidManagedNameException : Exception
#if !NETSTANDARD1_0 && !WINDOWS_UWP
using System.Runtime.Serialization;
#endif

#if !NETSTANDARD1_0 && !WINDOWS_UWP
[Serializable]
#endif
public class InvalidManagedNameException :
Exception
#if !NETSTANDARD1_0 && !WINDOWS_UWP
, ISerializable
#endif
{
public InvalidManagedNameException(string message) : base(message) { }

#if !NETSTANDARD1_0 && !WINDOWS_UWP
protected InvalidManagedNameException(SerializationInfo info, StreamingContext context) : base(info, context) { }
#endif
}
}

0 comments on commit d138fb9

Please sign in to comment.