Getting this error on this code:
string pname = null; pname = ag.FirstOrDefault().arrangement.parent.name; when calling the line pname = ag.FirstOrDefault.....
The filed parent.name is empty(null), which is fine I want to get an empty(null) string in such case. How can I get rid of the error?