R
RP
Please help converting following VB code to C#. My attempted C# code
is given below:
[VB Code]
If Session("Cart") Is Nothing Then
Session.Add("Cart",New SortedList)
End If
Return CType(Session("Cart"),SortedList)
----------------------------------------------------------------
[Attempted C# Code]
If (Session("Cart") == "")
Session.Add("Cart",new SortedList)
return SortedList Session("Cart");
is given below:
[VB Code]
If Session("Cart") Is Nothing Then
Session.Add("Cart",New SortedList)
End If
Return CType(Session("Cart"),SortedList)
----------------------------------------------------------------
[Attempted C# Code]
If (Session("Cart") == "")
Session.Add("Cart",new SortedList)
return SortedList Session("Cart");