ReadOnlyListBase derived class problem. IsReadOnly fails.ReadOnlyListBase derived class problem. IsReadOnly fails.
Old forum URL: forums.lhotka.net/forums/t/489.aspx
slipmat posted on Tuesday, June 27, 2006
Hi Everyone,
This is my first post, and I'm fairly new CSLA (am reading 2005 book currently)
I have created a class (ItemInfoList) which inherits from ReadOnlyListBase:
<Serializable()> _
Public Class ItemInfoList
Inherits ReadOnlyListBase(Of ItemInfoList, ItemInfo)
During the Fetch process, I am trying to add ItemInfo objects to the list.
In the method ReadOnlyBindingList.InsertItem(ByVal index As Integer, ByVal item As C)
There is a call to the local property IsReadOnly, which fails.
If I mouse over IsReadOnly during debugging I see:
The generic type 'Csla.Core.ReadOnlyBindingList`1' was used with the wrong number of generic arguments in assembly 'Csla, Version=2.0.2.0, Culture=neutral, PublicKeyToken=93be5fdc093e4c30'.
Any help, would be most appreciated.
Cheers
Matt
slipmat replied on Wednesday, June 28, 2006
I found some other posts in this forum that indicated the exception message I was seeing was a bug with the runtime visual debugging - which turned out to be the same in my case.
Thanks
Copyright (c) Marimer LLC