Mark all parameter names that match reserved keywords.

This commit is contained in:
the_fiddler 2010-10-12 17:35:40 +00:00
parent 32368a8dc3
commit 0e9ec6824b

View file

@ -328,10 +328,8 @@ namespace Bind.Structures
if (Reference) if (Reference)
WrapperType |= WrapperTypes.ReferenceParameter; WrapperType |= WrapperTypes.ReferenceParameter;
if (Name == "params") if (Utilities.Keywords.Contains(Name))
Name = "@params"; Name = "@" + Name;
if (Name == "event")
Name = "@event";
// This causes problems with bool arrays // This causes problems with bool arrays
//if (CurrentType.ToLower().Contains("bool")) //if (CurrentType.ToLower().Contains("bool"))