Skip to content

Commit 6ebf51f

Browse files
committed
Remove dependency on system.web
1 parent 6cc75c7 commit 6ebf51f

File tree

7 files changed

+4
-7
lines changed

7 files changed

+4
-7
lines changed

Src/EngineIoClientDotNet.mono/EngineIoClientDotNet.mono.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
</Reference>
3737
<Reference Include="System" />
3838
<Reference Include="System.Core" />
39-
<Reference Include="System.Web" />
4039
<Reference Include="WebSocket4Net, Version=0.7.0.0, Culture=neutral, PublicKeyToken=eb4e154b696bf72a, processorArchitecture=MSIL">
4140
<SpecificVersion>False</SpecificVersion>
4241
<HintPath>..\..\References\WebSocket4Net.dll</HintPath>

Src/EngineIoClientDotNet.mono/Modules/Global.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static string EncodeURIComponent(string str)
1616

1717
public static string DecodeURIComponent(string str)
1818
{
19-
return HttpUtility.UrlDecode(str);
19+
return Uri.UnescapeDataString(str);
2020
}
2121

2222
public static string CallerName([CallerMemberName]string caller = "", [CallerLineNumber]int number = 0, [CallerFilePath]string path = "")

Src/EngineIoClientDotNet.mono/Modules/Global_net35.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static string EncodeURIComponent(string str)
1616

1717
public static string DecodeURIComponent(string str)
1818
{
19-
return HttpUtility.UrlDecode(str);
19+
return Uri.UnescapeDataString(str);
2020
}
2121

2222
public static string CallerName(string caller = "", int number = 0, string path = "")

Src/EngineIoClientDotNet.mono/Modules/Global_netcore45.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public static string EncodeURIComponent(string str)
1919

2020
public static string DecodeURIComponent(string str)
2121
{
22-
return WebUtility.UrlDecode(str);
22+
return Uri.UnescapeDataString(str);
2323
}
2424

2525
public static string CallerName([CallerMemberName]string caller = "", [CallerLineNumber]int number = 0, [CallerFilePath]string path = "")

Src/EngineIoClientDotNet.mono/Modules/Global_windowsphone8.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static string EncodeURIComponent(string str)
1717

1818
public static string DecodeURIComponent(string str)
1919
{
20-
return HttpUtility.UrlDecode(str);
20+
return Uri.UnescapeDataString(str);
2121
}
2222

2323
public static string CallerName([CallerMemberName]string caller = "", [CallerLineNumber]int number = 0, [CallerFilePath]string path = "")

Src/EngineIoClientDotNet.net35/EngineIoClientDotNet.net35.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
<Reference Include="System.Threading.Tasks.NET35">
4141
<HintPath>packages\System.Threading.Tasks.3.0.1\lib\net35\System.Threading.Tasks.NET35.dll</HintPath>
4242
</Reference>
43-
<Reference Include="System.Web" />
4443
<Reference Include="System.Xml.Linq" />
4544
<Reference Include="System.Data.DataSetExtensions" />
4645
<Reference Include="System.Data" />

Src/EngineIoClientDotNet.net45/EngineIoClientDotNet.net45.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
</Reference>
3737
<Reference Include="System" />
3838
<Reference Include="System.Core" />
39-
<Reference Include="System.Web" />
4039
<Reference Include="WebSocket4Net">
4140
<HintPath>packages\WebSocket4Net.0.10\lib\net45\WebSocket4Net.dll</HintPath>
4241
</Reference>

0 commit comments

Comments
 (0)