The methods DO work btw but in THIS particular scenario there's an ORDER in which things have to happen, and that's unfortunately, not suiting YOUR situation
I did not mean to imply YOUR methods do not work
- Given the 'order problem' there would be certain ways to construct the object that would cause my code not to work (because the sort order is wrong) and other ways where it would work fine. That seems very bad, so would seem better to just place the sorting code everywhere throughout the project.
I might be the only one (wouldn't be the first time) one who wants to preset the order the collections are sorted in with my custom class! Does everyone else sets them everytime the use the object throughout all systems?
In fact, I have often thought of a 'feature request' - being able to choose which fields are sorted and asc/desc in the designer - then it could be generated right into the object. I was even considering doing an add-on using custom properties to make this happen, but it seems I cannot without modifying the shipping templates...
Is this feature on your feature request list?
... which you can fill with an include template
I could not find such a template place?
Don't get me wrong, I understand your position, but I am still trying to find a good answer! Normally, I can do anything I want by using a derrived class - but in this case I could not and was hoping for some answer/change to help me?
The initclassmembers is a private method, so I can't make it virtual.
Perhaps that is the wrong 'request' then. Would you consider another change/hook into the base classes that would let me do this? I guess I could put some code into the "InitClassMembers" user code region. However, was thinking a virtual method called from the end of InitClassMembers() - "InitedClassMembers" or something would be good - so I dont have code placed in user code regions everywhere. With partial classes, I had hoped to not need/use user code regions anymore.
Any considerations would be appreciated. As always thanks for your product and your responses.