Summary
true
if case statements should be indented.
The default:
switch (foo)
{
case 1:
{
a += 2;
break;
}
default:
{
a += 2;
break;
}
}
becomes:
switch (foo)
{
case 1:
{
a += 2;
break;
}
default:
{
a += 2;
break;
}
}
- Assembly
- NAnt
.Contrib .dll - Namespace
- NAnt
.Contrib .Tasks - Containing Type
- Astyle
Syntax
[TaskAttribute("indent-cases", Required = false)]
[BooleanValidator()]
public bool IndentCase { get; set; }
Attributes
Type | Description |
---|---|
TaskAttribute | |
BooleanValidator |
Value
Type | Description |
---|---|
bool |