Ejemplo n.º 1
0
            internal ObjectResolvingContext(object target, object container, string memberName, Func <object> valueThunk, string text)
            {
                if (target == null)
                {
                    throw new ArgumentNullException("target");
                }

                if (string.IsNullOrWhiteSpace(text))
                {
                    throw new ArgumentNullException("text");
                }

                if (valueThunk == null)
                {
                    throw new ArgumentNullException("valueThunk");
                }

                _direction  = ObjectResolvingDirection.Set;
                _target     = target;
                _container  = container;
                _memberName = memberName;
                _valueThunk = valueThunk;
                _text       = text;
                _handled    = true;
            }
Ejemplo n.º 2
0
            internal ObjectResolvingContext(object target, string text)
            {
                if (target == null)
                {
                    throw new ArgumentNullException("target");
                }

                if (string.IsNullOrWhiteSpace(text))
                {
                    throw new ArgumentNullException("text");
                }

                _direction = ObjectResolvingDirection.Get;
                _target    = target;
                _container = target;
                _value     = target;
                _text      = text;
                _handled   = true;
            }