You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Prime31
|
|
|
|
|
|
{
|
|
|
|
|
|
// Token: 0x02000009 RID: 9
|
|
|
|
|
|
public static class StringExtensions
|
|
|
|
|
|
{
|
|
|
|
|
|
// Token: 0x06000022 RID: 34 RVA: 0x00002FC8 File Offset: 0x000011C8
|
|
|
|
|
|
public static Dictionary<string, string> parseQueryString(this string self)
|
|
|
|
|
|
{
|
|
|
|
|
|
Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
|
|
|
|
|
string[] array = self.Split(new char[]
|
|
|
|
|
|
{
|
|
|
|
|
|
'?'
|
|
|
|
|
|
});
|
|
|
|
|
|
string[] array2;
|
|
|
|
|
|
if (array.Length != 2)
|
|
|
|
|
|
{
|
|
|
|
|
|
array2 = self.Split(new char[]
|
|
|
|
|
|
{
|
|
|
|
|
|
'&'
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
array2 = array[1].Split(new char[]
|
|
|
|
|
|
{
|
|
|
|
|
|
'&'
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
foreach (string text in array2)
|
|
|
|
|
|
{
|
|
|
|
|
|
string[] array4 = text.Split(new char[]
|
|
|
|
|
|
{
|
|
|
|
|
|
'='
|
|
|
|
|
|
});
|
|
|
|
|
|
dictionary.Add(array4[0], array4[1]);
|
|
|
|
|
|
}
|
|
|
|
|
|
return dictionary;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|