-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
86473e7
commit 5216a50
Showing
9 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
To add a triple-slash XML documentation summary to a generated [class](/api/Building-Classes), | ||
[struct](/api/Building-Struct), [interface](/api/Building-Interfaces), [enum](/api/Building-Enums), | ||
[attribute](/api/Building-Attributes), [field](/api/Building-Fields), [property](/api/Building-Properties) | ||
or [method](/api/Building-Methods), use: | ||
|
||
```cs | ||
BuildableExpression.SourceCode(sc => | ||
{ | ||
sc.AddClass("MyClass", cls => | ||
{ | ||
cls.SetSummary( | ||
"This is my generated class, " + | ||
"and it's pretty special"); | ||
}); | ||
}); | ||
``` | ||
|
||
## File Headers | ||
|
||
To add a file header to a generated c# source code file, use: | ||
|
||
```cs | ||
BuildableExpression.SourceCode(sc => | ||
{ | ||
sc.SetHeader($@" | ||
// - - - - - - - - - - - - - - - - - - - - - | ||
// This is generated code. | ||
// Generated on: {DateTime.Now} | ||
// Don't change this file directly, as your | ||
// changes may be overwritten. | ||
// - - - - - - - - - - - - - - - - - - - - -"); | ||
}); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters