public T GetInnerProperty <T> () where T : class { BindingContext ctx = this.Clone(); BindingElement e = ctx.DequeueBindingElement(false); return(e == null ? default(T) : e.GetProperty <T> (ctx)); }
public T GetInnerProperty <T> () where T : class { bool restore = PrepareElements(); try { BindingElement e = DequeueBindingElement(false); return(e == null ? default(T) : e.GetProperty <T> (this)); } finally { if (restore) { elements = empty_collection; } } }