protected AccessChild ( string ChildName ) : |
||
ChildName | string | |
return |
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];
}