From 0b7b57bf4d43fed8b6dfe52af054fae02b7417cd Mon Sep 17 00:00:00 2001 From: Andrew B Date: Mon, 20 Jul 2015 21:22:49 -0700 Subject: [PATCH] [C#] Fixing a mono compilation error --- .../src/main/resources/csharp/ApiClient.mustache | 2 +- .../src/main/csharp/IO/Swagger/Client/ApiClient.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/swagger-codegen/src/main/resources/csharp/ApiClient.mustache b/modules/swagger-codegen/src/main/resources/csharp/ApiClient.mustache index 45316e679fa..f7ebba9942f 100644 --- a/modules/swagger-codegen/src/main/resources/csharp/ApiClient.mustache +++ b/modules/swagger-codegen/src/main/resources/csharp/ApiClient.mustache @@ -162,7 +162,7 @@ namespace {{packageName}}.Client /// Escaped string. public string EscapeString(string str) { - return HttpUtility.UrlEncode(str); + return RestSharp.Contrib.HttpUtility.UrlEncode(str); } /// diff --git a/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Client/ApiClient.cs b/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Client/ApiClient.cs index 117cd598008..803e7dafa5d 100644 --- a/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Client/ApiClient.cs +++ b/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Client/ApiClient.cs @@ -162,7 +162,7 @@ namespace IO.Swagger.Client /// Escaped string. public string EscapeString(string str) { - return HttpUtility.UrlEncode(str); + return RestSharp.Contrib.HttpUtility.UrlEncode(str); } ///