one line if c# without : code example Example: c# if statement one line someValue = condition ? newValue : someValue;