public DelayedMemberBinding(ObjectBinding binder, object target, string name, bool throwNotFound)
    {
      if (binder == null)
        throw new ArgumentNullException("binder");
      if (target == null)
        throw new ArgumentNullException("target");
      if (string.IsNullOrEmpty(name))
        throw new ArgumentNullException("name");

      _binder = binder;
      _throwNotFound = throwNotFound;

      Target = target;
      TargetType = target as Type ?? target.GetType();
      MemberName = name;
    }
示例#2
0
        public DelayedMemberBinding(ObjectBinding binder, object target, string name, bool throwNotFound)
        {
            if (binder == null)
            {
                throw new ArgumentNullException("binder");
            }
            if (target == null)
            {
                throw new ArgumentNullException("target");
            }
            if (string.IsNullOrEmpty(name))
            {
                throw new ArgumentNullException("name");
            }

            _binder        = binder;
            _throwNotFound = throwNotFound;

            Target     = target;
            TargetType = target as Type ?? target.GetType();
            MemberName = name;
        }