Skip to content

Commit 9782d8d

Browse files
Merge pull request #163 from microsoftgraph/addMoreDescriptions
GetSanitizedLongDescription captures both Description and LongDescription. We were missing many descriptions when we weren't checking the Description property.
2 parents 06c1a6f + e7a15ce commit 9782d8d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Templates/CSharp/Model/ComplexType.cs.tt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ if (complex.IsBaseAbstractAndReferencedAsPropertyType() && !complex.IsAbstract)
6969

7070
/// <summary>
7171
/// Gets or sets <#=property.Name#>.
72-
<# if (property.LongDescription != null) {
72+
<# if (property.LongDescription != null || property.Description != null) {
7373
#>
7474
/// <#=property.GetSanitizedLongDescription()#>
7575
<# } #>
@@ -84,7 +84,7 @@ if (complex.IsBaseAbstractAndReferencedAsPropertyType() && !complex.IsAbstract)
8484

8585
/// <summary>
8686
/// Gets or sets <#=property.Name#>.
87-
<# if (property.LongDescription != null) {
87+
<# if (property.LongDescription != null || property.Description != null) {
8888
#>
8989
/// <#=property.GetSanitizedLongDescription()#>
9090
<# } #>

Templates/CSharp/Model/EntityType.cs.tt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ namespace <#=entity.Namespace.GetNamespaceName()#>
101101

102102
/// <summary>
103103
/// Gets or sets <#=property.Name.SplitCamelCase().ToLower()#>.
104-
<# if (property.LongDescription != null) {
104+
<# if (property.LongDescription != null || property.Description != null) {
105105
#>
106106
/// <#=property.GetSanitizedLongDescription()#>
107107
<# } #>
@@ -117,7 +117,7 @@ namespace <#=entity.Namespace.GetNamespaceName()#>
117117

118118
/// <summary>
119119
/// Gets or sets <#=property.Name.SplitCamelCase().ToLower()#>.
120-
<# if (property.LongDescription != null) {
120+
<# if (property.LongDescription != null || property.Description != null) {
121121
#>
122122
/// <#=property.GetSanitizedLongDescription()#>
123123
<# } #>

0 commit comments

Comments
 (0)