diff options
author | Andre Polykanine A.K.A. Menelion Elensúlë <andre@oire.org> | 2016-03-15 14:37:28 +0200 |
---|---|---|
committer | Andre Polykanine A.K.A. Menelion Elensúlë <andre@oire.org> | 2016-03-15 14:37:28 +0200 |
commit | 1582603b62c4e516ea2501ac19bacb9432ed3f2f (patch) | |
tree | 471c270c67ac46ca01825a93c2c66134185515c5 | |
parent | 80493bc290540e71f6f5b31a5c8898a19de56c2a (diff) | |
parent | 04a01fe872d7f2fb71de893fce122b54c68b4ae6 (diff) |
Merge pull request #1741 from chriszimmerman/master
[C#] Fixed minor grammatical changes. Added bitwise enum operator information.
-rw-r--r-- | csharp.html.markdown | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/csharp.html.markdown b/csharp.html.markdown index 197f43e7..7be34fb9 100644 --- a/csharp.html.markdown +++ b/csharp.html.markdown @@ -694,7 +694,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, @@ -881,8 +884,8 @@ on a new line! ""Wow!"", the masses cried"; bool Broken { get; } // interfaces can contain properties as well as methods & events } - // Class can inherit only one other class, but can implement any amount of interfaces, however - // the base class name must be the first in the list and all interfaces follow + // Classes can inherit only one other class, but can implement any amount of interfaces, + // however the base class name must be the first in the list and all interfaces follow class MountainBike : Bicycle, IJumpable, IBreakable { int damage = 0; |