public IEnvironmentVariableDirectoryPath GetChildDirectoryPath(string directoryName)
			{
				Debug.Assert(directoryName != null); // Enforced by contract
				Debug.Assert(directoryName.Length > 0); // Enforced by contract
				var pathString = PathBrowsingHelpers.GetChildDirectoryWithName(this, directoryName);
				Debug.Assert(pathString.IsValidEnvVarDirectoryPath());
				return new EnvironmentVariableDirectoryPath(pathString);
			}
Beispiel #2
0
            public IRelativeDirectoryPath GetChildDirectoryWithName(string directoryName)
            {
                Debug.Assert(directoryName != null);                 // Enforced by contracts
                Debug.Assert(directoryName.Length > 0);              // Enforced by contracts
                var pathString = PathBrowsingHelpers.GetChildDirectoryWithName(this, directoryName);

                Debug.Assert(pathString.IsValidRelativeDirectoryPath());
                return(new RelativeDirectoryPath(pathString));
            }
            public IAbsoluteDirectoryPath GetChildDirectoryPath(string directoryName)
            {
                //Debug.Assert(directoryName != null); // Enforced by contract
                //Debug.Assert(directoryName.Length > 0); // Enforced by contract

                var pathString = PathBrowsingHelpers.GetChildDirectoryWithName(this, directoryName);

                //Debug.Assert(pathString.IsValidAbsoluteDirectoryPath());

                return(new AbsoluteDirectoryPath(pathString));
            }