Quantcast
Channel: CSLA .NET
Viewing all articles
Browse latest Browse all 764

Polymorphic Lists in Csla 4.0.1

$
0
0

Hi,

I have followed the guidelines suggested by Rocky for implementing a polymorphic Csla List.

http://www.lhotka.net/Article.aspx?id=b8515cd9-7f8e-43df-9efd-cd958dfdc21a

 

What is not described in above article is how to implement adding different types to the list.

Factory methods of list child objects should be internal, so I am assuming that one needs to expose public methods for adding on the list itself.

MyList.AddConcreteType1(ConcreteType1 params)

MyList.AddConcreteType2(ConcreteType2 params)

 

Am I missing something,? Is there a cleaner and slicker way to do this?

Thanks!

 

 


Viewing all articles
Browse latest Browse all 764

Trending Articles