AcTools.Kn5File.Kn5.FromFile_Node C# (CSharp) 메소드

FromFile_Node() 개인적인 메소드

private FromFile_Node ( Kn5Reader reader ) : Kn5Node
reader Kn5Reader
리턴 Kn5Node
        private Kn5Node FromFile_Node(Kn5Reader reader) {
            var node = reader.ReadNode();
            var capacity = node.Children.Capacity;

            try {
                for (var i = 0; i < capacity; i++) {
                    node.Children.Add(FromFile_Node(reader));
                }
            } catch (EndOfStreamException) {
                node.Children.Capacity = node.Children.Count;
            }

            return node;
        }