/// <summary> /// Performs indexer access over a type. /// </summary> /// <param name="indexList">object used as indexer</param> /// <returns> /// An <see cref="IGetSetOperations"/> that will establish the operation to /// perform over the specifyed index. /// </returns> public IGetSetOperations Index(params object[] indexList) { if (OperationName != string.Empty) { throw new AlreadyDefinedOperationNameException(); } OperationName = "Item"; OperationType = EGetSetInvokerOperation.Index; foreach (object idx in indexList) { InnerParameterBuilder.AddParameter(idx); } return(this); }
/// <summary> /// Adds a parameter to the method call, passed with value semantics /// </summary> /// <param name="value">object to be passed as parameter</param> /// <returns> /// A reference to the object which made this operation /// </returns> public IMethodOperations AddParameter(object value) { InnerParameterBuilder.AddParameter(value); return(this); }
public IGetSetOperations PropertyParam(object value) { InnerParameterBuilder.AddParameter(value); return(this); }