I know it's non sense to do something like:
xstring.ToLower()??"xx"
because i called ToLower()
gets called before checking for null.
is there a way around this, keeping the syntax nice and clean?
can i override the ??
operator for the string so that it only calls ToLower()
when xstring
is not null
?