public FeedSource Add(SourceType sourceType, int sourceId) { if (this.Contains(sourceType, sourceId)) { throw new ArgumentException("Source already belongs to the collection."); } var child = FeedSource.NewFeedSource( new FeedSourceMemberDataCriteria { SourceId = sourceId, SourceTypeId = (int)sourceType }); this.Add(child); return(child); }