From 33ffabafc5e9d80670561d6e3096dfc449b3d487 Mon Sep 17 00:00:00 2001 From: "chris@chriszimmerman.net" Date: Thu, 22 Oct 2015 21:21:33 -0400 Subject: Fixed minor grammatical change. --- csharp.html.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'csharp.html.markdown') diff --git a/csharp.html.markdown b/csharp.html.markdown index dfdd98de..83efdfb6 100644 --- a/csharp.html.markdown +++ b/csharp.html.markdown @@ -879,8 +879,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; -- cgit v1.2.3 From 04a01fe872d7f2fb71de893fce122b54c68b4ae6 Mon Sep 17 00:00:00 2001 From: "chris@chriszimmerman.net" Date: Thu, 22 Oct 2015 21:38:55 -0400 Subject: Cleaned up enum flags example. Talked about bitwise operators & and |. --- csharp.html.markdown | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'csharp.html.markdown') 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, -- cgit v1.2.3