K
Kalpesh
Thanks Scott for clearing my understanding
I understood that CLR takes care of thread safety, when static is
prefixed
My misunderstanding
Also, it is not that I do not understand the static properties (eg.
Environment.NewLine)
I am curious to understand where would you provide read/write static
properties ?
(Environment.NewLine is a read only thing)
Also, which is better, properties or methods & why ?
For eg. Outlook has ActiveInspector - which sounds like a property, but
is a method
What is the reasoning when a library developer can make something like
this as property
What is the reason for such a decision ?
In your example, Database db = Factory.DatabaseInstance doesnt allow to
change the underlying value, using singleton
Kalpesh
I understood that CLR takes care of thread safety, when static is
prefixed
My misunderstanding
Also, it is not that I do not understand the static properties (eg.
Environment.NewLine)
I am curious to understand where would you provide read/write static
properties ?
(Environment.NewLine is a read only thing)
Also, which is better, properties or methods & why ?
For eg. Outlook has ActiveInspector - which sounds like a property, but
is a method
What is the reasoning when a library developer can make something like
this as property
What is the reason for such a decision ?
In your example, Database db = Factory.DatabaseInstance doesnt allow to
change the underlying value, using singleton
Kalpesh