I want to translate this line to vb.net:
The know that the dictionary class is in System.Collections.generic in vb.
I can create that object in vb.net with this line:
But I do NOT understand the last part of the c# fragment. I thought maybe the original author was casting the Dictionary to a StringComparer. But after researching it further, I don't think you CAN cast a Dictionary as a StringComparer. Plus, I think that to cast something in c# you put the new data type in FRONT of it, not behind it.
Please help!
Code:
pages=new Dictionary<string, string>(StringComparer.InvariantCultureIgnoreCase);
The know that the dictionary class is in System.Collections.generic in vb.
I can create that object in vb.net with this line:
Code:
Private pages As New Dictionary(Of String, String)
But I do NOT understand the last part of the c# fragment. I thought maybe the original author was casting the Dictionary to a StringComparer. But after researching it further, I don't think you CAN cast a Dictionary as a StringComparer. Plus, I think that to cast something in c# you put the new data type in FRONT of it, not behind it.
Please help!