Exemple #1
0
        public HelloWorldData GetHelloData(HelloWorldData helloWorldData)
        {
            if (helloWorldData == null)
                throw new ArgumentException("helloWorldData");

            if (helloWorldData.SayHello)
                helloWorldData.Name = "Hello World to {helloWorldData.Name}";

            return helloWorldData;
        }
Exemple #2
0
        public HelloWorldData GetHelloData(HelloWorldData helloWorldData)
        {
            if (helloWorldData == null)
            {
                throw new ArgumentException("helloWorldData");
            }

            if (helloWorldData.SayHello)
            {
                helloWorldData.Name = "Hello World to {helloWorldData.Name}";
            }

            return(helloWorldData);
        }