Skip to content

Commit aa08288

Browse files
author
Caitlin Bales (MSFT)
committed
Add default value to optional bool
1 parent 76b5c39 commit aa08288

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GraphODataTemplateWriter/CodeHelpers/CSharp/TypeHelperCSharp.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public static string GetSanitizedPropertyName(this OdcmProperty property)
212212
return GetSanitizedPropertyName(property.Name);
213213
}
214214

215-
public static string GetSanitizedPropertyName(this string property, string prefix = null, bool hasReservedModelWords)
215+
public static string GetSanitizedPropertyName(this string property, string prefix = null, bool hasReservedModelWords = false)
216216
{
217217
if (GetReservedNames().Contains(property) || (hasReservedModelWords && GetReservedModelNames().Contains(property)))
218218
{

0 commit comments

Comments
 (0)