IRelationCollection.AddRange and IRelationCollection

Posts   
 
    
mihies avatar
mihies
User
Posts: 800
Joined: 29-Jan-2006
# Posted on: 21-Jan-2007 16:46:59   

Is there any particular reason why IRelationCollection.AddRange has an ICollection argument instead of IRelationCollection one?

Or better, how do I add IRelationCollection to another IRelationCollection (besides obvious manual loop)?

mihies avatar
mihies
User
Posts: 800
Joined: 29-Jan-2006
# Posted on: 21-Jan-2007 16:51:03   

Found the answer: I have to cast IRelationCollection to RelationCollection (which implements ICollection).