Here’s a valid C# implementation of the property. Note the lowercase value keyword.
If you are using System.Drawing.Point, this is a struct, so you have no need for the is null
check, as it has a default value.
public Point Area
{
get
{
if (_Area == null)
_Area = new Point();
return _Area;
}
set
{
_Area = value;
}
}
1
solved How to convert vb.net property to c#