Suggestion for serialzing class name to designer


Author
Message
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (2.7K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
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!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search