Summary
Indicate the preset style to use.
ansi
namespace foospace
{
int Foo()
{
if (isBar)
{
bar();
return 1;
}
else
return 0;
}
}
kr ( Kernighan&Ritchie )
namespace foospace {
int Foo() {
if (isBar) {
bar();
return 1;
} else
return 0;
}
}
linux
namespace foospace
{
int Foo()
{
if (isBar) {
bar();
return 1;
} else
return 0;
}
}
gnu
namespace foospace
{
int Foo()
{
if (isBar)
{
bar();
return 1;
}
else
return 0;
}
}
java
class foospace {
int Foo() {
if (isBar) {
bar();
return 1;
} else
return 0;
}
}
NAnt
namespace foospace {
class foo() {
#region Protected Static Fields
private int Foo() {
if (isBar) {
bar();
return 1;
} else {
return 0;
}
}
#endregion
}
- Assembly
- NAnt
.Contrib .dll - Namespace
- NAnt
.Contrib .Tasks - Containing Type
- Astyle
Syntax
[TaskAttribute("style", Required = false)]
public string Style { get; set; }
Attributes
Type | Description |
---|---|
TaskAttribute |
Value
Type | Description |
---|---|
string |