I understand how the ternary operator (question mark - ?) works in an
if/else setting, but what does it mean when used as a type?
For instance, I'm trying to add a get/set in some existing code, but
the return type doesn't match:
Rectangle? m_textArea = null;
public Rectangle TextArea {
set { m_textArea = value; }
get { return m_textArea; }
}
I get a "can't convert Rectangle? to Rectangle" error on build. What
does the ? operator do when added to a variable declaration like this?
Thanks - d