Click here to Skip to main content
15,846,091 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
I have a class
class Strategy
		public Implementataion Implementataion = new Implementataion();
		public BenefitRisk BenefitRisk = new BenefitRisk();
		public Overview Overview = new Overview();
		public string RBId { get; set; }
		public string Name { get; set; }
		public string NameColor { get; set; }
		public string Picture { get; set; }
		public string Id { get; set; }

I am calling a method while returns me an object myStrategy of type Strategy.

While performing the following operation I am getting an exception "Value does not fall within the expected range."
this.DefaultViewModel["Strategy"] = (object) strategy;

Need help.

[Edit]Code blocks added[/Edit]
Updated 9-Feb-13 0:45am
Shashank Bisen 9-Feb-13 8:25am    
please help guys

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900