Problem in calling function parameter as generics dictionary from C# to vb.net

I have a function written in C# which has one parameter type as Dictionary<string , string>. When i try to call this function in VB.Net it doesn't show the type as Dictionary<string , string> it shows as string. Below is my function

public bool RegisterCustomerAttribute(int CustomerId
                                          , Dictionary<string , string> dictAttribute)
    {
        try
        {

            List<string> keys = new List<string>(dictAttribute.Keys);

            foreach (string key in keys)
            {
                CustomerAttribute custattr = new CustomerAttribute();

                custattr.Customer.CustomerID = CustomerId;
                custattr.Key = key;
                custattr.Value = dictAttribute[key];

                customerattrepo.AddCustomerAttribute(custattr);

            }

            return true;
        }
        catch (Exception ex)
        {
            string strMsg = ex.Message;
            return false;
        }
    }

alt text http://i46.tinypic.com/qsv6fa.png

Answers


At first I thought there might be an overload that only takes a key and value, but you'd see an option for that at least in the intellisense. So instead, I bet it's looking at old or out of date code — you need to reload the reference to your c# project from your VB project in visual studio.


Need Your Help

How do I hide a Highcharts series from the chart, but always show it in the tooltip?

javascript highcharts dotnethighcharts

I am using Highcharts to render a chart with two y-axes. One axis measures a count, while the other axis measures a rate. To illustrate, refer to the following: http://jsfiddle.net/NH5R3

Orchard CMS - How to use themed and httppost attributes together

asp.net-mvc themes orchardcms orchardcms-1.7

I'm working with Orchard 1.7.2 and in my custom module I have a number of controller actions decorated with the [Themed] attribute.