Skip to content

Commit 77babf0

Browse files
authored
Deprecate PatternMatch (#4661)
1 parent 9a96446 commit 77babf0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/core/Akka.API.Tests/CoreAPISpec.ApproveCore.approved.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2111,6 +2111,7 @@ namespace Akka
21112111
public override int GetHashCode() { }
21122112
public override string ToString() { }
21132113
}
2114+
[System.ObsoleteAttribute("Use instead the pattern matching feature introduced in C# 7.0")]
21142115
public class static PatternMatch
21152116
{
21162117
public static Akka.Case Match(this object target) { }

src/core/Akka/PatternMatch.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ namespace Akka
1212
/// <summary>
1313
/// Class PatternMatch.
1414
/// </summary>
15+
[Obsolete("Use instead the pattern matching feature introduced in C# 7.0")]
1516
public static class PatternMatch
1617
{
1718

0 commit comments

Comments
 (0)