Loading a concrete type of a generic class using reflection?

Meh, overcomplicated as always. Didn't realise I should do: public class MockTestControllerRunner : IRunner { #region IRunner Members public ActionSettings Run(string runnerXml) { MvcActionSettings mvcActionSettings = XmlSerialiser. XmlDeserialise(runnerXml); IMvcActionSettingsCreator creator = new MockPassThroughActionSettingsGenerator(); Interfaces.

ActionSettings v = creator. Create(mvcActionSettings); return v; } #endregion #region IRunnerWorkflowSubscriber Members public void Initialise(IWizardManagerBase manager) { } #endregion } This removes the need for finding away around the generic parameter issue with reflection Regards, Jamie.

Meh, overcomplicated as always. Didn't realise I should do: public class MockTestControllerRunner : IRunner { #region IRunner Members public ActionSettings Run(string runnerXml) { MvcActionSettings mvcActionSettings = XmlSerialiser. XmlDeserialise(runnerXml); IMvcActionSettingsCreator creator = new MockPassThroughActionSettingsGenerator(); Interfaces.

ActionSettings v = creator. Create(mvcActionSettings); return v; } #endregion #region IRunnerWorkflowSubscriber Members public void Initialise(IWizardManagerBase manager) { } #endregion } This removes the need for finding away around the generic parameter issue with reflection. Regards, Jamie.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions