J
Jeff
Hey
I've bought the book "ASP.NET 2.0 website programming, Problem, Design,
Solution" and some of its code examples is this code:
protected static string ConvertNullToEmptyString(string input)
{
return (input == null ? "" : input);
}
I have problem understanding this line: (input == null? "":input);
input shall only be set to "" if the value of input is NULL, but I don't see
any if-statement in this code. ?
Best Regards!
Jeff
I've bought the book "ASP.NET 2.0 website programming, Problem, Design,
Solution" and some of its code examples is this code:
protected static string ConvertNullToEmptyString(string input)
{
return (input == null ? "" : input);
}
I have problem understanding this line: (input == null? "":input);
input shall only be set to "" if the value of input is NULL, but I don't see
any if-statement in this code. ?
Best Regards!
Jeff