Simply implement
get accessor only, don‘t implement ―set accessor.
Syn:
get accessor only, don‘t implement ―set accessor.
Syn:
private datatype variablename;
accessmodifier datatype propertyname
{
get
{
return (variablename);
}
}
accessmodifier datatype propertyname
{
get
{
return (variablename);
}
}