StrataFrame Forum

Suggestion for serialzing class name to designer

http://forum.strataframe.net/Topic12067.aspx

By Greg McGuffey - 10/18/2007

I'd like to suggest that when serializing a class name to the designer file, like when indicating a BO type or enum type, rather than serializing the name as text, use the GetType(TypeToSerialize).FullName (or the typeof().FullName I think with C#). E.g.



' Old way

ListPopulationSettings1.BusinessObjectType = "MyApp.MyBo"

ListPopulationSettings1.MethodToExecute = "FillAll;MyApp.MyBo"

' Suggested way

ListPopulationSettings1.BusinessObjectType = GetType(MyApp.MyBo).FullName

ListPopulationSettings1.MethodToExecute = "FillAll;" & GetType(MyApp.MyBo).FullName







This would increase the coverage of the types you could obfuscate greatly. Right now, I can't obfuscate any BO, because the type name of the BO is likely reference via plain text in designer files. If there is some way to also do with when indicating methods or properties, such when setting the fill method when setting population settings or setting the bound field.



Thanks!