1 override of Type
Microsoft.TemplateEngine.Cli (1)
ChoiceTemplateParameter.cs (1)
40
internal override ParameterType
Type
=> ParameterType.Choice;
3 writes to Type
Microsoft.TemplateEngine.Cli (3)
CliTemplateParameter.cs (3)
40
Type
= ParseType(parameter.DataType);
81
Type
= type;
98
Type
= other.Type;
13 references to Type
Microsoft.TemplateEngine.Cli (13)
CliTemplateParameter.cs (9)
43
if (
Type
== ParameterType.Boolean && string.Equals(parameter.DefaultIfOptionWithoutValue, "true", StringComparison.OrdinalIgnoreCase))
88
DataType = ParameterTypeToString(
Type
);
98
Type = other.
Type
;
150
|| (
Type
== ParameterType.String ||
Type
== ParameterType.Choice) && DefaultValue != null)
161
if (
Type
== ParameterType.Hex)
209
Option cliOption =
Type
switch
235
_ => throw new Exception($"Unexpected value for {nameof(ParameterType)}: {
Type
}.")
507
if (
Type
== ParameterType.Boolean)
Commands\create\TemplateCommandArgs.cs (1)
118
if (parameter.
Type
== ParameterType.Hex && optionResult.Option is Option<long>)
Commands\create\TemplateOption.cs (3)
44
if (TemplateParameter.
Type
!= other.TemplateParameter.
Type
)
68
return new { a = TemplateParameter.Name, b = TemplateParameter.
Type
, c = Aliases.Aggregate(0, (sum, next) => sum ^ next.GetHashCode()) }.GetHashCode();