File tree Expand file tree Collapse file tree 2 files changed +27
-2
lines changed
sessions/Season-01/1116-CSharpEleven/SampleCode Expand file tree Collapse file tree 2 files changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -45,12 +45,12 @@ public partial class PokerPlayingCard : IPlayingCard<PokerPlayingCard>
45
45
46
46
public static PokerPlayingCard operator ++ ( PokerPlayingCard value )
47
47
{
48
- return All [ ( value . _value + 1 ) % All . Length ] ;
48
+ return All [ ( value . Rank + 1 ) % All . Length ] ;
49
49
}
50
50
51
51
public static PokerPlayingCard operator -- ( PokerPlayingCard value )
52
52
{
53
- return All [ ( value . _value - 1 ) % All . Length ] ;
53
+ return All [ ( value . Rank - 1 ) % All . Length ] ;
54
54
}
55
55
56
56
public static bool operator == ( PokerPlayingCard left , PokerPlayingCard right )
Original file line number Diff line number Diff line change
1
+
2
+ Microsoft Visual Studio Solution File, Format Version 12.00
3
+ # Visual Studio Version 17
4
+ VisualStudioVersion = 17.5.33312.197
5
+ MinimumVisualStudioVersion = 10.0.40219.1
6
+ Project ("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}" ) = "CSharpEleven" , "CSharpEleven.csproj" , "{F087B28A-1F8A-4BD2-8A36-7BA5D71DEBA4}"
7
+ EndProject
8
+ Global
9
+ GlobalSection (SolutionConfigurationPlatforms ) = preSolution
10
+ Debug| Any CPU = Debug| Any CPU
11
+ Release| Any CPU = Release| Any CPU
12
+ EndGlobalSection
13
+ GlobalSection (ProjectConfigurationPlatforms ) = postSolution
14
+ {F087B28A-1F8A-4BD2-8A36-7BA5D71DEBA4} .Debug| Any CPU .ActiveCfg = Debug| Any CPU
15
+ {F087B28A-1F8A-4BD2-8A36-7BA5D71DEBA4} .Debug| Any CPU .Build .0 = Debug| Any CPU
16
+ {F087B28A-1F8A-4BD2-8A36-7BA5D71DEBA4} .Release| Any CPU .ActiveCfg = Release| Any CPU
17
+ {F087B28A-1F8A-4BD2-8A36-7BA5D71DEBA4} .Release| Any CPU .Build .0 = Release| Any CPU
18
+ EndGlobalSection
19
+ GlobalSection (SolutionProperties ) = preSolution
20
+ HideSolutionNode = FALSE
21
+ EndGlobalSection
22
+ GlobalSection (ExtensibilityGlobals ) = postSolution
23
+ SolutionGuid = {66DE8E03-C78E-46C6-9ACE-B06B8A05DCC0}
24
+ EndGlobalSection
25
+ EndGlobal
You can’t perform that action at this time.
0 commit comments