summaryrefslogtreecommitdiffhomepage
path: root/csharp.html.markdown
diff options
context:
space:
mode:
authorchris@chriszimmerman.net <cjay.zimmerman@gmail.com>2015-10-22 21:38:55 -0400
committerchris@chriszimmerman.net <cjay.zimmerman@gmail.com>2015-10-22 21:38:55 -0400
commit04a01fe872d7f2fb71de893fce122b54c68b4ae6 (patch)
tree6e5bb12d127af37613d3450afdd602174af42912 /csharp.html.markdown
parent33ffabafc5e9d80670561d6e3096dfc449b3d487 (diff)
Cleaned up enum flags example. Talked about bitwise operators & and |.
Diffstat (limited to 'csharp.html.markdown')
-rw-r--r--csharp.html.markdown5
1 files changed, 4 insertions, 1 deletions
diff --git a/csharp.html.markdown b/csharp.html.markdown
index 83efdfb6..6f11d8a1 100644
--- a/csharp.html.markdown
+++ b/csharp.html.markdown
@@ -692,7 +692,10 @@ on a new line! ""Wow!"", the masses cried";
public BikeBrand Brand; // After declaring an enum type, we can declare the field of this type
// Decorate an enum with the FlagsAttribute to indicate that multiple values can be switched on
- [Flags] // Any class derived from Attribute can be used to decorate types, methods, parameters etc
+ // Any class derived from Attribute can be used to decorate types, methods, parameters etc
+ // Bitwise operators & and | can be used to perform and/or operations
+
+ [Flags]
public enum BikeAccessories
{
None = 0,