mirror of
https://gitee.com/csharpui/CPF.git
synced 2025-06-28 13:34:09 +08:00
13 lines
384 B
C#
13 lines
384 B
C#
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};";
|
|
}
|
|
}
|