Problem with NameValueList template

Problem with NameValueList template

Old forum URL: forums.lhotka.net/forums/t/1984.aspx


wjcomeaux posted on Friday, December 15, 2006

in the public string Inherits property of TemplateBase.cs shouldn't

case ObjectType.NameValueList:
                            return string.Format(" : {0}<{2}, {2}>", _baseClass, ((PropertyInfo)_uniqueProperties[0]).Type, ((PropertyInfo)_properties[1]).Type);

be

case ObjectType.NameValueList:
                            return string.Format(" : {0}<{1}, {2}>", _baseClass, ((PropertyInfo)_uniqueProperties[0]).Type, ((PropertyInfo)_properties[1]).Type);

? As it is in the current download you always get NameValusList<string, string> even if your key or value is a different data type. This cause compile errors if, for instance you use something other than a string as the type for your Key or Value.

Will

rasupit replied on Saturday, December 16, 2006

Will,
Thanks for your bug report. However this bug has been identified and fixed. The current version (1.1 RC)  that I have posted for download at http://www.codeplex.com/CSLAcontrib/Release/ProjectReleases.aspx?ReleaseId=1155 contains this fix.

Once again, thanks for your report anyway.
Ricky

wjcomeaux replied on Monday, December 18, 2006

No problem. I've been meaning to merge the new releases with my current templates but haven't had a chance to do so. It's also up in the air as to whether or not my boss is going to spring for the license. It isn't looking good ATM. :(

I was hoping to score a feww license from the CodeSmith guy here wo extended the offer a while back but it's been a couple of weeks and he hasn't responded yet.

So, who knows if I'll even be using CodeSmith soon. Dissapointing as I have grown accustomed to it...

 

Will

wjcomeaux replied on Thursday, December 21, 2006

Yey! A licensed version of CodeSmith 4 Professional! Camping my boss's office finally paid off. He couldn't ignore me forever! :)

 

Copyright (c) Marimer LLC