diff --git a/XmlSchemaClassGenerator/CodeUtilities.cs b/XmlSchemaClassGenerator/CodeUtilities.cs index 32cdf430..e83a4012 100644 --- a/XmlSchemaClassGenerator/CodeUtilities.cs +++ b/XmlSchemaClassGenerator/CodeUtilities.cs @@ -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) @@ -218,7 +218,7 @@ internal static string NormalizeNewlines(string text) return NormalizeNewlinesRegex.Replace(text, "$1\r\n"); } - static readonly List CShaprpKeywords = new List + static readonly List CSharpKeywords = new List { "abstract", "as", "base", "bool", "break", "byte", "case", "catch",