-
-
Notifications
You must be signed in to change notification settings - Fork 377
Expand file tree
/
Copy pathImportFileGenerator.cs
More file actions
25 lines (23 loc) · 696 Bytes
/
Copy pathImportFileGenerator.cs
File metadata and controls
25 lines (23 loc) · 696 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using Microsoft.AspNetCore.Components;
using System;
using System.Linq;
using System.Text;
namespace MatBlazor.DevUtils
{
// [TestFixture]
public class ImportFileGenerator
{
// [Test]
public void GenerateImportsFileContent()
{
var assembly = typeof(BaseMatDomComponent).Assembly;
var sb = new StringBuilder();
foreach (var nam in assembly.GetExportedTypes().Where(i => i.IsSubclassOf(typeof(ComponentBase)))
.Select(i => i.Namespace).Distinct().OrderBy(i => i))
{
sb.AppendLine($"@using {nam}");
}
Console.WriteLine(sb.ToString());
}
}
}