RestImageResize/Utils/UriExtentions.cs
/// <summary>
/// Gets the query string values collection.
/// </summary>
/// <param name="uri">The URI.</param>
/// <returns>
/// The query string values collection.
/// </returns>
Gets the query string values collection.
Gets the query string values collection .
public static NameValueCollection GetQueryString(this Uri uri)
        {
            string queryString = string.Empty;
            if (uri.IsAbsoluteUri)
            {
                queryString = uri.Query;
            }
            else
            {
                string url = uri.OriginalString;
                int queryStartMarkIndex = url.IndexOf('?');
                if (queryStartMarkIndex > 0)
                {
                    queryString = url.Substring(queryStartMarkIndex);
                }
            }
            return HttpUtility.ParseQueryString(queryString);
        }
public static NameValueCollection GetQueryString ( this Uri uri ) { string queryString = string . Empty ; if ( uri . IsAbsoluteUri ) { queryString = uri . Query ; } else { string url = uri . OriginalString ; int queryStartMarkIndex = url . IndexOf ( ' ' ) ; if ( queryStartMarkIndex > 0 ) { queryString = url . Substring ( queryStartMarkIndex ) ; } } return HttpUtility . ParseQueryString ( queryString ) ; }
Gets the query string values collection.
Gets the query string values collection .
The query string values collection.
The query string values collection .
Uri
this
uri
None