Last post Jun 18, 2013 04:15 AM by Chunyan Yu - MSFT
Jun 17, 2013 03:04 AM|londhe kunal|LINK
In project there are many static properties are used. how safe it's used . i don't known why we are using static propertices.
Jun 17, 2013 03:15 AM|akhleshchauhan|LINK
A static property is similar to a static method. It uses the composite name to be accessed. Static properties use the same get and set tokens as instance properties.
They are useful for abstracting global data in programs.
static properties helps to increase performance of the application,
they are globaly accessable ,
static properties are invoked by using the class name.
following are the links which help you to understand static properties.
Jun 18, 2013 04:15 AM|Chunyan Yu - MSFT|LINK
A static propertyis similar to a static method. It uses the composite name to be accessed. Static properties use the same get and set tokens as instance properties. They are useful for abstracting global data in programs. When a property declaration
includes a static modifier, the property is said to be a static property. When no
static modifier is present, the property is said to be an instance property. A static property is not associated with a specific instance, and it is a compile-time error to refer to
this in the accessors of a static property.
For Static and instance properties:
For example: http://www.dotnetperls.com/static-property
Hope that's helpful.