Skip to content

Commit

Permalink
fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkoKacprzak committed Apr 4, 2018
1 parent f9d3bdb commit 13e92ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions XmlSchemaClassGenerator/CodeUtilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public static string GetUniqueFieldName(this TypeModel typeModel, PropertyModel
var classModel = typeModel as ClassModel;
var propBackingFieldName = propertyModel.Name.ToBackingField(classModel?.Configuration.DoNotUseUnderscoreInPrivateMemberNames == true);

if (CShaprpKeywords.Contains(propBackingFieldName.ToLower()))
if (CSharpKeywords.Contains(propBackingFieldName.ToLower()))
propBackingFieldName = "@" + propBackingFieldName;

if (classModel == null)
Expand Down Expand Up @@ -218,7 +218,7 @@ internal static string NormalizeNewlines(string text)
return NormalizeNewlinesRegex.Replace(text, "$1\r\n");
}

static readonly List<string> CShaprpKeywords = new List<string>
static readonly List<string> CSharpKeywords = new List<string>
{
"abstract", "as", "base", "bool",
"break", "byte", "case", "catch",
Expand Down

0 comments on commit 13e92ed

Please sign in to comment.