I have a class:
class MyPic
{
private Bitmap bmp=null;
public MyPic(Bitmap b)
{
bmp=b;
}
public Bitmap Bmp
{
get { return bmp; }
}
}
I created the Bont readonly property, but the user can still modify it using the method SetPixel. How can I prevent this?
source
share