J
Jon Maz
Hi,
Quick & easy one - why does this code give an error?
=====
CODE
=====
private int numberOfPages;
public readonly int NumberOfPages
{
get { return numberOfPages; }
}
======
ERROR
======
The modifier 'readonly' is not valid for this item (pointing to line
"public readonly int NumberOfPages").
TIA,
JON
Quick & easy one - why does this code give an error?
=====
CODE
=====
private int numberOfPages;
public readonly int NumberOfPages
{
get { return numberOfPages; }
}
======
ERROR
======
The modifier 'readonly' is not valid for this item (pointing to line
"public readonly int NumberOfPages").
TIA,
JON