mirror of
https://gitee.com/csharpui/CPF.git
synced 2026-06-23 17:02:08 +08:00
razor支持
This commit is contained in:
12
CpfRazorSample/ComponentWrapperGenerator/UsingStatement.cs
Normal file
12
CpfRazorSample/ComponentWrapperGenerator/UsingStatement.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace ComponentWrapperGenerator
|
||||
{
|
||||
internal sealed class UsingStatement
|
||||
{
|
||||
public string Alias { get; set; }
|
||||
public string Namespace { get; set; }
|
||||
|
||||
public string ComparableString => Alias?.ToUpperInvariant() ?? Namespace?.ToUpperInvariant();
|
||||
|
||||
public string UsingText => $"using {(Alias != null ? Alias + " = " : "")}{Namespace};";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user