示例#1
0
        public void SetWorkingMember(TypeMemberInfo member)
        {
            if (member == null)
            {
                throw new ArgumentNullException("member");
            }

            CaptureStack.Peek().CurrentMember = member;
        }
示例#2
0
        public void CaptureLateBinding(int id, TypeMemberInfo info)
        {
            if (id == 0)
            {
                throw new ArgumentNullException("id");
            }
            if (info == null)
            {
                throw new ArgumentNullException("info");
            }

            CaptureStack.Peek().CaptureNodes.Add(new CaptureNode(id, info));
        }
示例#3
0
        public void CaptureLateBinding(int id)
        {
            if (id == 0)
            {
                throw new ArgumentNullException("id");
            }

            CaptureSet set = CaptureStack.Peek();

            if (set.CurrentMember == null)
            {
                throw new ReferenceException("CurrentMember of ReferenceManager is null");
            }
            set.CaptureNodes.Add(new CaptureNode(id, set.CurrentMember));
        }