What the use of ?? symble

Posted by Gow.net under WPF on 12/15/2011 | Points: 10 | Views : 1331 | Status : [Member] | Replies : 2
 private RelayCommand publickeycommand;
public ICommand PublickeyCommand
{
get { return publickeycommand ?? (publickeycommand = new RelayCommand(() => publickeyBrowse())); }

}

what is the meaning of this symbols ?? , => and += in MVVM pattern any one guide me plz

gowthaman8870226416


Responses

Posted by: Blessyjees on: 12/16/2011 [Member] Bronze | Points: 25

Up
0
Down
Hi,

=> lambda operator, read as "goes to"
?? null-coalescing operator, this is used to define a default value in the case of nullable value type or reference type
+= addition assignment operator. this is equal to x=x+1

Check for this link http://msdn.microsoft.com/en-us/library/sa7629ew.aspx more details

Blessy Baby
Digitalmesh Softech pvt Ltd
https://blessybaby.wordpress.com/

Gow.net, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: debal_saha-9451 on: 12/17/2011 [Member] Starter | Points: 25

Up
0
Down
pl check out below the link in my blog for your queries explanation .

http://silverlightpractice.blogspot.com/2011/12/how-to-do-work-with-and-in-c-40.html


Gow.net, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response