CSPspEmu.Hle.Formats.IsoNode.AccessChild C# (CSharp) Method

AccessChild() protected method

protected AccessChild ( string ChildName ) : IsoNode
ChildName string
return IsoNode
        protected IsoNode AccessChild(string ChildName)
        {
            if (ChildName == "" || ChildName == ".") return this;
            if (ChildName == "..") return Parent ?? this;
            ChildName = ChildName.ToUpper();

            if (!_childsByNameUpperCase.ContainsKey(ChildName))
            {
                throw (new FileNotFoundException(String.Format("Can't find '{0}' on '{1}'", ChildName, this)));
            }
            return _childsByNameUpperCase[ChildName];
        }