In vb.net
I've this code block:
Public Sub AddItem(Text As String, Optional Left As Integer = 0, Optional Header As Boolean = False)
Dim Item As ListItem
ReDim Item.Text(0)
Item.Text(0).Text = Text
Item.Text(0).Left = Left
Item.Header = Header
LstItems.Add(Item)
End Sub
UPDATE: ListItem
Public Structure ListItem
Dim Text() As ListText
Dim Header As Boolean
End Structure
this code allow me to add an item to a list, ReDim
allocate the storage space for an array variable in vb.net, in c# what is the equivalent of this code? I also tried to convert it on converter.telerik.com without success.