/// <summary> /// Adds the input argument to the growing collection. /// </summary> /// <param name="name">The name of the argument in the object graph.</param> /// <param name="internalName">Name of the argument as it was defined in the code.</param> /// <param name="typeExpression">The type expression representing how this value is represented in this graph schema.</param> /// <param name="concreteType">The concrete type this field is on the server.</param> /// <returns>IGraphFieldArgument.</returns> public IGraphFieldArgument AddArgument( string name, string internalName, GraphTypeExpression typeExpression, Type concreteType) { var argument = new VirtualGraphFieldArgument( name, internalName, typeExpression, concreteType); return(this.AddArgument(argument)); }
/// <summary> /// Adds the input argument to the growing collection. /// </summary> /// <param name="name">The name of the argument in the object graph.</param> /// <param name="internalName">Name of the argument as it was defined in the code.</param> /// <param name="typeExpression">The type expression representing how this value is represented in this graph schema.</param> /// <param name="concreteType">The concrete type this field is on the server.</param> /// <param name="defaultValue">The default value to set for the argument. If null, indicates /// the argument supplies null as the default value.</param> /// <returns>IGraphFieldArgument.</returns> public IGraphFieldArgument AddArgument( string name, string internalName, GraphTypeExpression typeExpression, Type concreteType, object defaultValue) { var argument = new VirtualGraphFieldArgument( name, internalName, typeExpression, concreteType, GraphArgumentModifiers.None, defaultValue); return(this.AddArgument(argument)); }