public HelloWorldData GetHelloData(HelloWorldData helloWorldData) { if (helloWorldData == null) throw new ArgumentException("helloWorldData"); if (helloWorldData.SayHello) helloWorldData.Name = "Hello World to {helloWorldData.Name}"; return helloWorldData; }
public HelloWorldData GetHelloData(HelloWorldData helloWorldData) { if (helloWorldData == null) { throw new ArgumentException("helloWorldData"); } if (helloWorldData.SayHello) { helloWorldData.Name = "Hello World to {helloWorldData.Name}"; } return(helloWorldData); }