Add SwitchExpressionException (dotnet/corefx#34954)
authorMaryam Ariyan <maryam.ariyan@microsoft.com>
Fri, 8 Feb 2019 02:49:42 +0000 (18:49 -0800)
committerDan Moseley <danmose@microsoft.com>
Fri, 8 Feb 2019 02:49:42 +0000 (18:49 -0800)
commit113200c30f4f209547f358a9b10842eeb9d8d4a4
tree9617e851d7ddd6149e0be377f11105bb719b20a8
parent79b7d2c8fe40295065c4790d020f14a496ef3119
Add SwitchExpressionException (dotnet/corefx#34954)

* Add SwitchExpressionException

Fixes: dotnet/corefx#33284

* Apply PR feedbacks

* Type just added to .net core 3.0

* quick cleanup

* Add test in BinaryFormatterTestData

* Updated the APIs for SwitchExpressionException

* Remove IsSerializable condition

Commit migrated from https://github.com/dotnet/corefx/commit/3685052201c95462f210582be9fe380baf1b902e
src/libraries/System.Runtime.Extensions/ref/System.Runtime.Extensions.cs
src/libraries/System.Runtime.Extensions/src/Resources/Strings.resx
src/libraries/System.Runtime.Extensions/src/System.Runtime.Extensions.csproj
src/libraries/System.Runtime.Extensions/src/System/Runtime/CompilerServices/SwitchExpressionException.cs [new file with mode: 0644]
src/libraries/System.Runtime.Extensions/tests/System.Runtime.Extensions.Tests.csproj
src/libraries/System.Runtime.Extensions/tests/System/Runtime/CompilerServices/SwitchExpressionExceptionTests.cs [new file with mode: 0644]
src/libraries/System.Runtime.Serialization.Formatters/tests/BinaryFormatterTestData.cs