コード例 #1
0
        public static Task <Foo> CreateAsync()
        {
            var result = new Foo();

            return(result.InitAsync());
        }
コード例 #2
0
        //factory method
        public static Task <Foo> CreateAsync(string name)
        {
            var result = new Foo(name);

            return(result.InitAsync());
        }