c# to vb.net conversion

Hi All,

I'm trying to convert some c# code over to vb.net and am having trouble getting the following line converted over:

DataSource mainDataSource

Open in new window


its context is being used as a function parameter. what i tried was:

ByVal mainDataSource as DataSource

Open in new window


but its still has the blue squiggly line under it saying its invalid. I'm guessing I need to import the proper reference, I'm just not sure what it would be.

I'm also having trouble with this function parameter as well:

List<Dictionary<string, string>> repeatingData

Open in new window


This is all being done in the code behind for an InfoPath 2010 form.

Thanks in Advance!
LVL 34
Big MontySenior Web Developer / CEO of ExchangeTree.org Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Big MontyConnect With a Mentor Senior Web Developer / CEO of ExchangeTree.org Author Commented:
i found what I needed, it was:

Imports Microsoft.Office.InfoPath.DataSource

and for the second part of my question, I needed

ByVal repeatingData As List(Of Dictionary(Of String, String))
0
 
Lalit ChandraCommented:
just add  Namespace

System.Collections.Generic
Microsoft.AnalysisServices
0
 
Big MontySenior Web Developer / CEO of ExchangeTree.org Author Commented:
found the solution on my own
0
All Courses

From novice to tech pro — start learning today.