diff options
author | Max Yankov <golergka@gmail.com> | 2013-08-17 16:06:04 +0200 |
---|---|---|
committer | Max Yankov <golergka@gmail.com> | 2013-08-17 16:06:04 +0200 |
commit | c3df13db567b82fc0802e46c23e4e4486618b207 (patch) | |
tree | fc10996a4f52a514dc8d2cf49fe8df3fc1b81dd2 | |
parent | 4295e85d6097e2d331ff75a958a3a5a064795410 (diff) |
C#: comments about "this" keyword
-rw-r--r-- | csharp.html.markdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/csharp.html.markdown b/csharp.html.markdown index 951958b6..0cef8f05 100644 --- a/csharp.html.markdown +++ b/csharp.html.markdown @@ -422,10 +422,10 @@ namespace Learning public Bicycle(int startCadence, int startSpeed, int startGear, string name, bool hasCardsInSpokes) { - this.gear = startGear; + this.gear = startGear; // "this" keyword denotes the current object this.cadence = startCadence; this._speed = startSpeed; - this.name = name; + this.name = name; // it can be useful when there's a name conflict this.hasCardsInSpokes = hasCardsInSpokes; } |