_provider = provider ?? Membership.Provider;I did a little research and found it's just a shortcut for this, using an iif/conditional:
_provider = provider != null ? provider : Membership.Provider;which of course is a shortcut for this regular if statement:
if(provider != null) { _provider = provider; } else { _provider = Membership.Provider; }
More info here: http://msdn.microsoft.com/en-us/library/ms173224.aspx
Very cool. I love the terseness of C#.
No comments:
Post a Comment