Visual Studio Class Diagram Custom Collection Association

Viewed 54

Consider the following hypothetical data classes:

public class Comment
{
    public string Message { get; set; }
}

and

public class Topic
{
    public string Title { get; set; }

    public DateTime CreationDate { get; set; }

    public SourceList<Comment> Comments { get; set; }
}

The Topic class exposes a SourceList of type Comment. SourceList is a type defined in the DynamicData library. The thing is that this class doesn't expose its items on its surface, meaning that the items are exposed through an IEnumerable property named Items. Hence, the Visual Studio class diagram fails to find the association:

VS class diagram error when choosing Show as Collection Association

Is there any way to extend VS class diagram functionality to support such custom collection implementations?

Thanks in advance.

0 Answers
Related