swami swami

swami swami

  • NA
  • 29
  • 5.1k

return value

Dec 5 2013 2:54 PM

Hi all 

I am stuck up with one problem. Any help is appreciated.

How will I get value of  following function -   public List<KeyValuePair<string, int>> GetForm()

I have to get it and assign to variable "views1" in another function called 

private List<Events> PageViewStats(string accountId)
{
List<Events> views1 = null;
try
{

views1 = analytics.GetForm() as List<GoAnalytics.Events>;

}
catch (Exception ex)
{   }
return views1;
}

How will I assign it? Following Line is giving me an error.... 

 views1 = analytics.GetSiteVisits() as List<GoAnalytics.Events>;


Answers (3)