public void SetValue <T>(InOutArgument <T> argument, T value)
 {
     this.ThrowIfDisposed();
     if (argument != null)
     {
         argument.ThrowIfNotInTree();
         this.SetValueCore <T>(argument.RuntimeArgument, value);
     }
 }
 public T GetValue <T>(InOutArgument <T> argument)
 {
     this.ThrowIfDisposed();
     if (argument == null)
     {
         throw FxTrace.Exception.ArgumentNull("argument");
     }
     argument.ThrowIfNotInTree();
     return(this.GetValueCore <T>(argument.RuntimeArgument));
 }
Example #3
0
        //[SuppressMessage(FxCop.Category.Design, FxCop.Rule.ConsiderPassingBaseTypesAsParameters,
        //    Justification = "Generic needed for type inference")]
        public void SetValue <T>(InOutArgument <T> argument, T value)
        {
            ThrowIfDisposed();

            if (argument == null)
            {
                // We want to shortcut if the argument is null
                return;
            }

            argument.ThrowIfNotInTree();

            SetValueCore(argument.RuntimeArgument, value);
        }