c# - What is an "Action<IEnumerable<TwitterStatus>,TwitterResponse>action"? -


hi i've made attempt @ using tweetsharp twitter application i'm building , had success on desktop application. when wanted port wp7, methods required argument:

action<ienumerable<twitterstatus>,twitterresponse>action 

i'm not sure method asking for. didn't have use in desktop app. can explain it's asking or maybe point me proper documentation can understand how works? thanks.

it's describing method takes 2 arguments, ienumerable<twitterstatus> , twitterresponse , has void return type. there many ways satisfy concise: (status, response) => blah ordinary method:

private void mymethod(ienumerable<twitterstatus> status, twitterresopnse response)  {     blah } 

the latter example can passed methods directly:

obj.sometwittermethod(mymethod); 

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

android - layout with fragment and framelayout replaced by another fragment and framelayout -