<#+
//////////////////////////////////////////////////////////////////////////////////
//
// Method GenerateDocumentation()
// Documentation comments generation for classes, properties and methods.
//
//////////////////////////////////////////////////////////////////////////////////
private void GenerateDocumentation(Documentation doc, string name) {
#>
/// <summary>
<#+
if (!string.IsNullOrEmpty(doc.Summary)) {
foreach (string str in doc.Summary.Split('\n')) {
#>
/// <#= str.TrimEnd('\r') #>
<#+
}
}
else {
if (!string.IsNullOrEmpty(doc.LongDescription)) {
foreach (string str in doc.LongDescription.Split('\n')) {
#>
/// <#= str.TrimEnd('\r') #>
<#+
}
}
else
{
#>
/// There are no comments for <#= name #> in the schema.
<#+
}
}
#>
/// </summary>