4
Reply

static property

George George

George George

Jun 11 2008 10:49 PM
1.7k

Hello everyone,


Sorry for this stupid question, as I am migrated from C++ to C#. In C++ there is no concept of property, except in COM.

For static property of a class in C# (e.g. DateTime.Now), I think there is nothing special compared to a non-static property, except we need to access the property by class name other than by instance variable name?

In my usage of static property, I feel no special point compared with static function. Correct?


thanks in advance,
George


Answers (4)