Is there an operator in C# that behaves like the safe navigation operator in groovy?
For instance, in groovy, doing something like this will prevent it from getting a NullPointerException if SessionData.CurrentSeminar is null.
int respId = SessionData.CurrentSeminar?.SeminCbaRespId;
How is this accomplished with C#?
That operator does not exist in C#. You could do it with an inline-if
or as an extension method.