Skip to content

Commit 922e5af

Browse files
committed
wrapped examples in namespace
1 parent 89248a6 commit 922e5af

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

generate_sdk_docs.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -282,13 +282,16 @@ def execute_csharp_example(client_name, method_name, example_call):
282282
using System.Threading.Tasks;
283283
using Solcast.Clients;
284284
285-
class Program
285+
namespace Solcast.GeneratedSamples
286286
{{
287-
static async Task Main(string[] args)
287+
class Program
288288
{{
289-
var client = new {client_name}();
290-
var response = await client.{method_name}({example_call});
291-
Console.WriteLine(response.RawResponse);
289+
static async Task Main(string[] args)
290+
{{
291+
var client = new {client_name}();
292+
var response = await client.{method_name}({example_call});
293+
Console.WriteLine(response.RawResponse);
294+
}}
292295
}}
293296
}}
294297
"""

0 commit comments

Comments
 (0)