summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMelvyn <melvyn.laily@gmail.com>2013-09-21 16:11:45 -0400
committerMelvyn <melvyn.laily@gmail.com>2013-09-21 16:11:45 -0400
commit71a62e642d2f31dcdc62aee9fd61ca6fa18d1c57 (patch)
tree1f7359ce78febb00192db4e0fe5cbbd1776bceb0
parent758cd94b33dcfce89ab308c67725513184fb3c4b (diff)
breaking some lines (C#)
-rw-r--r--csharp.html.markdown9
1 files 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(<iteratorType> <iteratorName> in <enumerable>)
// The foreach loop loops over any object implementing IEnumerable or IEnumerable<T>
- // 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