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