You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicstaticfinalStringMODEL_PROPERTY_NAMING_DESC = "Naming convention for the property: 'camelCase', 'PascalCase', 'snake_case' and 'original', which keeps the original name";
/// <paramname="source">Object to be casted</param>
368
368
/// <paramname="dest">Target type</param>
369
369
/// <returns>Casted object</returns>
370
-
public static dynamic ConvertType(dynamic source, Type dest)
370
+
{{#supportsAsync}}public static dynamic ConvertType(dynamic source, Type dest){{/supportsAsync}}{{^supportsAsync}}public static object ConvertType<T>(T source, Type dest) where T : class{{/supportsAsync}}
Copy file name to clipboardexpand all lines: modules/swagger-codegen/src/main/resources/csharp/README.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,14 @@
6
6
-[RestSharp] (https://www.nuget.org/packages/RestSharp) - 105.1.0 or later
7
7
-[Json.NET] (https://www.nuget.org/packages/Newtonsoft.Json/) - 7.0.0 or later
8
8
9
-
NOTE: The DLLs included in the package may not be the latest version. We recommned using [NuGet] (https://docs.nuget.org/consume/installing-nuget) to obtain the latest version of the packages:
9
+
The DLLs included in the package may not be the latest version. We recommned using [NuGet] (https://docs.nuget.org/consume/installing-nuget) to obtain the latest version of the packages:
10
10
```
11
11
Install-Package RestSharp
12
12
Install-Package Newtonsoft.Json
13
13
```
14
14
15
+
NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See [RestSharp#742](https://github.com/restsharp/RestSharp/issues/742)
Copy file name to clipboardexpand all lines: samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/PetApi.cs
Copy file name to clipboardexpand all lines: samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/StoreApi.cs
+73-62
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@ namespace IO.Swagger.Api
15
15
/// </summary>
16
16
publicinterfaceIStoreApi
17
17
{
18
+
#region Synchronous Operations
18
19
19
20
/// <summary>
20
21
/// Returns pet inventories by status
@@ -33,24 +34,6 @@ public interface IStoreApi
33
34
/// </remarks>
34
35
/// <returns>ApiResponse of Dictionary<string, int?></returns>
Copy file name to clipboardexpand all lines: samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/UserApi.cs
Copy file name to clipboardexpand all lines: samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Client/ApiClient.cs
Copy file name to clipboardexpand all lines: samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Properties/AssemblyInfo.cs
-1
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,5 @@
1
1
usingSystem.Reflection;
2
2
usingSystem.Runtime.InteropServices;
3
-
usingSystem.Windows;
4
3
5
4
// General Information about an assembly is controlled through the following
6
5
// set of attributes. Change these attribute values to modify the information
0 commit comments