User-2066630380 posted
Hi, very confused about this one.
IN my webforms application. Why on God's green earth would creating and returning a new XEelement work in selecting and stepping into GetResults() from a wizardstep in ascx control "PriorityWizardStep" but as soon as it's not a XEelement but a List of PriorityQuestionModel
type it won't even step into GetPriorityResults() in that same control? All types and controls are found it's just the xelement somehwhere allows for stepping into.
Anyone have a clue? thanks!
//Works
var resultsXElement = new XElement("root", this.WizardSteps.OfType<PriorityWizardStep>().Select(s => s.GetResults()));
// Does not step into GetPriorityResults.
List<PriorityQuestionModel> resultsPriorities = (List<PriorityQuestionModel>)this.WizardSteps.OfType<PriorityWizardStep>().Select(p => p.GetPriorityResults());