You can populate class diagrams by showing C# elements that are related to each other by specific relationships.
You can select the relationship types based on how you want to show the related C# elements and specify to what level you want to expand the related C# elements.