L
light_wt
Hi,
I have a simple question about methods property. The
syntax is
public <dataType> MtdName{
get {
// property get code
}
set {
// property set code
}
}
Correct me if I am wrong. The property can be assigned
without the set portion. So, what does the set exactly
do? May be readonly visibility for derived classes? Why
is the benifit to have a readonly property in a class?
Thanks.
I have a simple question about methods property. The
syntax is
public <dataType> MtdName{
get {
// property get code
}
set {
// property set code
}
}
Correct me if I am wrong. The property can be assigned
without the set portion. So, what does the set exactly
do? May be readonly visibility for derived classes? Why
is the benifit to have a readonly property in a class?
Thanks.