mvc3, api twitter

Somebody can explain me this code :

auth = new MvcAuthorizer
           Credentials = credentials               


var auth = new MvcAuthorizer
            Credentials = new SessionStateCredentials()
                ConsumerKey = this.client.ConsumerKey,
                ConsumerSecret = this.client.ConsumerSecret,
                OAuthToken = identity.Token.Token

the difference between the two codes



Logically, there is no difference. I'm making the assumption that "credentials" in the first example is a SessionStateCredentials that was instantiated previously in the code. The second example uses object initialization syntax to do the same thing.

Need Your Help

Extracting raw data from a PowerPivot model using Python

python excel ssas ado powerpivot

What seemed like a trivial task turned into a real nightmare when I had to read in some data from a PowerPivot model using Python. I believe I've researched this very well over the last couple of d...

NSDateFormatter dateFormat for Google Calendar Data

ios datetime nsdate nsdateformatter date-format

I seem to be running into great difficulty in attempting to convert a Google Calendar date string (parsed from a public JSON), into NSDate format.