From 71a62e642d2f31dcdc62aee9fd61ca6fa18d1c57 Mon Sep 17 00:00:00 2001 From: Melvyn Date: Sat, 21 Sep 2013 16:11:45 -0400 Subject: [PATCH] breaking some lines (C#) --- csharp.html.markdown | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/csharp.html.markdown b/csharp.html.markdown index e6a174c3..8b293534 100644 --- a/csharp.html.markdown +++ b/csharp.html.markdown @@ -328,7 +328,8 @@ namespace Learning // For Each Loop // foreach loop structure => foreach( in ) // The foreach loop loops over any object implementing IEnumerable or IEnumerable - // All the collection types (Array, List, Dictionary...) in the .Net framework implement one or both of these interfaces + // All the collection types (Array, List, Dictionary...) in the .Net framework + // implement one or both of these interfaces. // (The ToCharArray() could be removed, because a string also implements IEnumerable) foreach (char character in "Hello World".ToCharArray()) { @@ -518,7 +519,8 @@ namespace Learning gear = newValue; } - // Method parameters can have default values. In this case, methods can be called with these parameters omitted + // Method parameters can have default values. + // In this case, methods can be called with these parameters omitted public void SpeedUp(int increment = 1) { _speed += increment; @@ -541,7 +543,8 @@ namespace Learning // You can also define an automatic property in one line // this syntax will create a backing field automatically. - // You can set an access modifier on either the getter or the setter (or both) to restrict its access: + // You can set an access modifier on either the getter or the setter (or both) + // to restrict its access: public bool IsBroken { get; private set; } // Properties can be auto-implemented