C# readable code
It is my first practice and I like to share my C# code here. \n\n\n/*\n// Definition for a Node.\npublic class Node {\n    public int val;\n    public IList<Nod
It is my first practice and I like to share my C# code here. \n\n```\n/*\n// Definition for a Node.\npublic class Node {\n    public int val;\n    public IList<Node> children;\n\n    public Node(){}\n    public Node(int _val,IList<Node> _children) {\n        val = _val;\n        children = _children;\n}\n*/\npublic class Solution {\n    public IList<int> Postorder(Node root)\n        {\n            var nodes = new List<int>();\n            if (root == null)\n                return nodes;\n\n            postorderTraversal(root, nodes);\n\n            return nodes;\n        }\n\n        /// <summary>\n        /// assume root is not null\n        /// </summary>\n        /// <param name="root"></param>\n        /// <param name="nodes"></param>\n        private static void postorderTraversal(Node root, List<int> nodes)\n        {           \n            if (root.children == null)\n                return;\n\n            foreach (var item in root.children)\n            {\n                postorderTraversal(item, nodes);\n            }\n\n            nodes.Add(root.val);\n        }\n}\n```\n
[]