Hi
I am integrating an events diary into a project using C# and I am having trouble converting the following
VB.net code to c# from chapter one of ASP.NET 2.0 instant results:
DefaultPublicReadOnlyProperty Item(ByVal index AsInteger) As DiaryEvent
Get
ReturnCType(List.Item(index), DiaryEvent)
EndGet
EndProperty
Using a converter I get this:
publicDiaryEvent Item
{
get { return (DiaryEvent)List.Item[index]; }
}
which I know is incorrect? can someone show me the correct method?
Thanks
.Netster