We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85ec424 commit 053e45dCopy full SHA for 053e45d
ICSharpCode.Decompiler.Tests/TestCases/Pretty/EnumTests.cs
@@ -28,6 +28,12 @@ public enum SimpleEnum
28
Item2
29
}
30
31
+ public enum NoZero
32
+ {
33
+ Item1 = 1,
34
+ Item2
35
+ }
36
+
37
public enum OutOfOrderMembers
38
{
39
Item1 = 1,
@@ -135,5 +141,18 @@ public object PreservingTypeWhenBoxedTwoEnum()
135
141
136
142
return AttributeTargets.Class | AttributeTargets.Delegate;
137
143
144
145
+ public void EnumInNotZeroCheck(SimpleEnum value, NoZero value2)
146
147
+ if (value != SimpleEnum.Item1)
148
149
+ Console.WriteLine();
150
151
152
+ if (value2 != 0)
153
154
155
156
138
157
139
-}
158
+}
0 commit comments