Skip to content

Commit

Permalink
/
Browse files Browse the repository at this point in the history
  • Loading branch information
Agrabski committed Nov 22, 2020
1 parent d517570 commit 1498160
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 36 deletions.
36 changes: 0 additions & 36 deletions MoreStaticAnalisis/MoreStaticAnalisis.Package/README.md

This file was deleted.

21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,26 @@ enum Subjects
}
```
mark ``All`` with the ``CombinedFlags`` attribute from ``MoreStaticAnalisis.Attributes`` namespace)
* Enum with ``Flags`` attribute has a value equal zero. For example:
```
enum Subjects
{
Math,
None
Physics = 2,
History = 4,
}
```
``Math`` has value 0 and ``None`` value 1. To fix the warning, assign the desired label values and mark ``None`` with ``None`` attribute from ``MoreStaticAnalisis.Attributes`` namespace:
```
enum Subjects
{
Math = 1,
[None]
None = 0
Physics = 2,
History = 4,
}
```

Feedback via github issues is always welcome.

0 comments on commit 1498160

Please sign in to comment.