// This file is auto-generated, don't edit it. Thanks. using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Threading.Tasks; using Tea; using Tea.Utils; using Darabonba.Test.Models; namespace Darabonba.Test { public class Client { public Client(Config config) { } public void Hello() { TeaRequest request_ = new TeaRequest(); request_.Method = "GET"; request_.Pathname = "/"; request_.Headers = new Dictionary { {"host", "www.test.com"}, }; string host = request_.Headers.Get("host"); if (true) { request_.Headers["host"] = "www.test2.com"; } TeaResponse response_ = TeaCore.DoAction(request_); HelloIf(); return ; } public async Task HelloAsync() { TeaRequest request_ = new TeaRequest(); request_.Method = "GET"; request_.Pathname = "/"; request_.Headers = new Dictionary { {"host", "www.test.com"}, }; string host = request_.Headers.Get("host"); if (true) { request_.Headers["host"] = "www.test2.com"; } TeaResponse response_ = await TeaCore.DoActionAsync(request_); HelloIf(); return ; } public static void HelloIf() { if (true) { } if (true) { } else if (true) { } else { } } public static void HelloThrow() { throw new TeaException(new Dictionary(){}); } public static void HelloForBreak() { foreach (var item in new List { "1", "2" }) { break; } } public static void HelloWhile() { while (true) { break; } } public static void HelloDeclare() { string hello = "world"; string helloNull = null; hello = "hehe"; } } }