Skip to content

Commit eef391c

Browse files
committed
Updated TopicViewModelCollection to use new ICoreTopicViewModel
This greatly reduces the interface requirements of the `TItem` generic type argument. In practice, view models will likely have more properties—but they're not needed as far as `TopicViewModelCollection` is concerned.
1 parent 527dee4 commit eef391c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

OnTopic.ViewModels/_collections/TopicViewModelCollection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ namespace OnTopic.ViewModels {
1616
| VIEW MODEL: TOPIC COLLECTION
1717
\---------------------------------------------------------------------------------------------------------------------------*/
1818
/// <summary>
19-
/// Provides a basic collection interface for use with models implementing <see cref="ITopicViewModel"/>, including <see
19+
/// Provides a basic collection interface for use with models implementing <see cref="ICoreTopicViewModel"/>, including <see
2020
/// cref="TopicViewModel"/> and derivatives.
2121
/// </summary>
2222
/// <remarks>
2323
/// Typically, view models should be created as part of the presentation layer. The <see cref="Models"/> namespace contains
2424
/// default implementations that can be used directly, used as base classes, or overwritten at the presentation level. They
2525
/// are supplied for convenience to model factory default settings for out-of-the-box content types.
2626
/// </remarks>
27-
public class TopicViewModelCollection<TItem>: KeyedCollection<string, TItem> where TItem: ITopicViewModel {
27+
public class TopicViewModelCollection<TItem>: KeyedCollection<string, TItem> where TItem: ICoreTopicViewModel {
2828

2929
/*==========================================================================================================================
3030
| CONSTRUCTOR

0 commit comments

Comments
 (0)