Click here to Skip to main content
15,886,840 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
I have a class
C#
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."
C#
this.DefaultViewModel["Strategy"] = (object) strategy;

Need help.

[Edit]Code blocks added[/Edit]
Posted
Updated 8-Feb-13 23:45pm
v2
Comments
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