public string Source
{
get
{
/*
if ( Source == null ){
return string . Empty;
} else {
return Source;
The ternary operator RETURNS one of two values. Or, it can execute one of two statements based on its condition, but that's generally not a good idea, as it can lead to unintended side-effects.
bar ? () : baz();
In this case, the () does nothing, while baz does something. But you've only made the code less clear. I'd go for more verbose code that's clearer and easier to maintain.
Further, this makes little sense at all:
var foo = bar ? () : baz();
since () has no return type (it's void) and baz has a return type that's unknown at the point of call in this sample. If they don't agree, the compiler will complain, and loudly.