What is the meaning of double "?"

Yesterday i saw a post about wpf validation:
http://www.codeproject.com/winfx/wpfvalidation.asp

I was in puzzled wheh i saw the code(show below)

publicstringthis[string propertyName]
{
get
{
string result =string.Empty;
propertyName = propertyName ?string.Empty;//Here!!!!
if (propertyName ==string.Empty || propertyName =="Name")
{
if (string.IsNullOrEmpty(this.Name))
{
result ="Name cannot be blank!";
}
}
return result;
}
}

What is meaning of "?"
thanks

[1389 byte] By [stswordman] at [2007-12-24]
# 1

a= x ? y Is abreviation for

if(x!=null)
a=x;
else
a=y;

ivolved_Mike_Brown at 2007-10-8 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 2
got it.
thanks ivolved_Mike_Brown
stswordman at 2007-10-8 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 3
BTW, I think that ? is implemented as a single operation in MSIL, even if it's not, I'm pretty sure it's more performant that what one can write by hand.
ivolved_Mike_Brown at 2007-10-8 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 4

another useful operator is the single "?"

if(x == 1)

y=2;

else

y=3;

can be expressed as

y=(x == 1 ? 2 : 3);

JDPeckham at 2007-10-8 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...

Visual Studio Orcas

Site Classified