summaryrefslogtreecommitdiffhomepage
path: root/csharp.html.markdown
diff options
context:
space:
mode:
authorLaoujin <woutervs@hotmail.com>2015-01-31 22:05:11 +0100
committerLaoujin <woutervs@hotmail.com>2015-01-31 22:05:11 +0100
commit4f8b16f81745c4082945b49e631aadd204564626 (patch)
treee53e072d908a19a5cead38baf942d3b213db70d9 /csharp.html.markdown
parent0387b6dbf19ae0c7d885e2ab47031435a0e07fa4 (diff)
[CSharp/en]Added static property
Diffstat (limited to 'csharp.html.markdown')
-rw-r--r--csharp.html.markdown3
1 files changed, 1 insertions, 2 deletions
diff --git a/csharp.html.markdown b/csharp.html.markdown
index 8eda5356..61db6a8a 100644
--- a/csharp.html.markdown
+++ b/csharp.html.markdown
@@ -625,7 +625,7 @@ on a new line! ""Wow!"", the masses cried";
// Static members belong to the type itself rather then specific object.
// You can access them without a reference to any object:
// Console.WriteLine("Bicycles created: " + Bicycle.bicyclesCreated);
- static public int BicyclesCreated = 0;
+ public static int BicyclesCreated { get; set; }
// readonly values are set at run time
// they can only be assigned upon declaration or in a constructor
@@ -827,7 +827,6 @@ on a new line! ""Wow!"", the masses cried";
* Flags
* Attributes
- * Static properties
* Exceptions, Abstraction
* ASP.NET (Web Forms/MVC/WebMatrix)
* Winforms