M
Mark Kamoski
Hi Everyone--
Please help.
What is the difference between a Field and a Property?
Here is the context.
In the VS.NET 2002 documentation, in the "String Members" section, we have
the following...
....
Public Fields
....
Public Properties
....
....so, what is the difference?
In particular, I am noticing the String.Empty field, which is read-only.
Why isn't this simply a read-only Property?
Which leads one to think that there IS a difference between a Field and a
Property, but it is not clear to me what that difference is.
Is there a catch here?
That sums up my inquiry.
Please advise.
Thank you.
--Mark
Please help.
What is the difference between a Field and a Property?
Here is the context.
In the VS.NET 2002 documentation, in the "String Members" section, we have
the following...
....
Public Fields
....
Public Properties
....
....so, what is the difference?
In particular, I am noticing the String.Empty field, which is read-only.
Why isn't this simply a read-only Property?
Which leads one to think that there IS a difference between a Field and a
Property, but it is not clear to me what that difference is.
Is there a catch here?
That sums up my inquiry.
Please advise.
Thank you.
--Mark