Sdl.Web.Mvc/Controllers/BaseController.cs
/// <summary>
/// Gets the typed value of a request parameter (from the URL query string) with a given name.
/// </summary>
/// <typeparam name="T">The type of the value.</typeparam>
/// <param name="name">The name of the parameter.</param>
/// <returns>The typed value of the request parameter or the default value for the given type if the parameter is not specified or cannot be converted to the type.</returns>
Gets the typed value of a request parameter (from the URL query string) with a given name.
Gets the typed value of a request parameter ( from the URL query string ) with a given name .
protected virtual T GetRequestParameter<T>(string name)
        {
            T value;
            TryGetRequestParameter(name, out value);
            return value;
        }
protected virtual T GetRequestParameter < T > ( string name ) { T value ; TryGetRequestParameter ( name , out value ) ; return value ; }
Gets the typed value of a request parameter (from the URL query string) with a given name.
Gets the typed value of a request parameter ( from the URL query string ) with a given name .
The typed value of the request parameter or the default value for the given type if the parameter is not specified or cannot be converted to the type.
The typed value of the request parameter or the default value for the given type if the parameter is not specified or cannot be converted to the type .
name
string
The name of the parameter.
The name of the parameter .
typeparam
The type of the value.
The type of the value .