diff --git a/Base/Base.vbproj b/Base/Base.vbproj index 83178b53..20832855 100644 --- a/Base/Base.vbproj +++ b/Base/Base.vbproj @@ -57,6 +57,7 @@ + diff --git a/Base/ModuleExtensions.vb b/Base/ModuleExtensions.vb index 6070327d..816bf1b6 100644 --- a/Base/ModuleExtensions.vb +++ b/Base/ModuleExtensions.vb @@ -1,4 +1,5 @@ Imports System.Runtime.CompilerServices +Imports System.Web Public Module ModuleExtensions Const UnixEraStartTicks As Long = 621355968000000000 @@ -55,6 +56,21 @@ Public Module ModuleExtensions Return (pString.Trim().ToLower() = "true") OrElse (pString.Trim() = "1") End Function + ' ====================================================== + ' === DICTIONARY + ' ====================================================== + + + Public Function ToURLQueryString(pDictionary As IDictionary(Of String, String)) As String + Dim oQueryString = HttpUtility.ParseQueryString(String.Empty) + + For Each oItem As KeyValuePair(Of String, String) In pDictionary + oQueryString.Add(oItem.Key, oItem.Value) + Next + + Return oQueryString.ToString() + End Function + ' ====================================================== ' === DATATABLE ' ======================================================