public interface IFlexibleObject { string BackingData { get; } void PlayWithValues(); } public SomeFlexibleObject : IFlexibleObject { private XDocument _doc = XDocument.Parse("<testing><help>23435</help></testing>"); public BackingData { get { return _doc.ToString(); } } public void PlayWithValues() { // Do something with the help node value } } public ComplexObject { public string SomeValue { get; set; } public IFlexibleObject FlexibleObject { get; set; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)