Click here to Skip to main content
15,906,329 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm sending the following CappedCall class to the propertygrid.
C#
[TypeConverter(typeof(ExpandableObjectConverter))]
[DataContract(Name = "Junk", Namespace = "MFL")]
public class Junk
{
  public Junk() { }
  [DataMember] public double Goo { get; set; }
}
[DataContract(Name = "CappedCall", Namespace = "MFL")]
public class CappedCall : Call
{
  public CappedCall() { }
  [DataMember] public Junk Goo { get; set; }
  [DataMember] public double UpperStrike { get; set; }
}

I would like to edit the field Goo while in the CappedCall object. When I add the tag TypeConverter on the Junk class, Goo appears to be a modifiable attribute, when it really isn't. Is there any way while in a CappedCall object to modify Goo?
Posted

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