That's because yuo are using an assignment operator instead of an equality operator. You need this:One "=" is assignment, two "=" is equality.Code:string Woof = (Growl.Trim() == string.Empty ? "Hi" : "Bye");
|
Results 1 to 6 of 6
Threaded View
|
Click Here to Expand Forum to Full Width |