コード例 #1
0
ファイル: BindingContext.cs プロジェクト: pmq20/mono_forked
        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));
        }
コード例 #2
0
        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;
                }
            }
        }