diff --git a/NRefactory/ICSharpCode.NRefactory.VB/OutputVisitor/OutputVisitor.cs b/NRefactory/ICSharpCode.NRefactory.VB/OutputVisitor/OutputVisitor.cs index b94dbdbbe..d27615fd4 100644 --- a/NRefactory/ICSharpCode.NRefactory.VB/OutputVisitor/OutputVisitor.cs +++ b/NRefactory/ICSharpCode.NRefactory.VB/OutputVisitor/OutputVisitor.cs @@ -115,7 +115,7 @@ namespace ICSharpCode.NRefactory.VB StartNode(parameterDeclaration); WriteAttributes(parameterDeclaration.Attributes); WriteModifiers(parameterDeclaration.ModifierTokens); - WriteIdentifier(parameterDeclaration.Name.Name); + parameterDeclaration.Name.AcceptVisitor(this, data); if (!parameterDeclaration.Type.IsNull) { WriteKeyword("As"); parameterDeclaration.Type.AcceptVisitor(this, data); @@ -1053,7 +1053,7 @@ namespace ICSharpCode.NRefactory.VB #endregion #region IsKeyword Test - static readonly HashSet unconditionalKeywords = new HashSet { + static readonly HashSet unconditionalKeywords = new HashSet(StringComparer.OrdinalIgnoreCase) { "AddHandler", "AddressOf", "Alias", "And", "AndAlso", "As", "Boolean", "ByRef", "Byte", "ByVal", "Call", "Case", "Catch", "CBool", "CByte", "CChar", "CInt", "Class", "CLng", "CObj", "Const", "Continue", "CSByte", "CShort", "CSng", "CStr", "CType", "CUInt",