S
Sefa Sevtekin
I am trying to create a c# typesafe collection to avoid
typecasting exceptions and to ease binding of grids to
collections. I already did it in VB.NET but couldn't map
it to C#. In VB.NET you need to define a default property
in order to make binding work. It is something similiar to
this:
Default Public ReadOnly Property Item(ByVal index As
Integer) As LineItem
Get
Return CType(list(index), LineItem)
End Get
End Property
As far as I know there is no Default identifier for C#
properties.
Any help would be appriciated!!!
Sefa
typecasting exceptions and to ease binding of grids to
collections. I already did it in VB.NET but couldn't map
it to C#. In VB.NET you need to define a default property
in order to make binding work. It is something similiar to
this:
Default Public ReadOnly Property Item(ByVal index As
Integer) As LineItem
Get
Return CType(list(index), LineItem)
End Get
End Property
As far as I know there is no Default identifier for C#
properties.
Any help would be appriciated!!!
Sefa