Original Post
Hi, I'm trying to rewrite part of the code that uses a custom class to represent a point to use PointF struct. However I need to calculate this point and if anything goes wrong, null value is assigned to the point object. This way in the next iteration I know that there's no previous point (it's null). However it's impossible to assign null to struct: Cannot convert null to 'System.Drawing.PointF' because it is a value type I could create additional boolean value or just create a class that would be almost exactly the same as PointF struct, but is there some easier way? PointF has IsEmpty property, but it's read-only and it returns true for x=y=0, which is not what I need. Thanks in advance