public IEnvironmentVariableFilePath GetChildFilePath(string fileName)
			{
				Debug.Assert(fileName != null); // Enforced by contract
				Debug.Assert(fileName.Length > 0); // Enforced by contract
				var pathString = PathBrowsingHelpers.GetChildFileWithName(this, fileName);
				Debug.Assert(pathString.IsValidEnvVarFilePath());
				return new EnvironmentVariableFilePath(pathString);
			}
Beispiel #2
0
            public IRelativeFilePath GetChildFileWithName(string fileName)
            {
                Debug.Assert(fileName != null);                 // Enforced by contracts
                Debug.Assert(fileName.Length > 0);              // Enforced by contracts
                var pathString = PathBrowsingHelpers.GetChildFileWithName(this, fileName);

                Debug.Assert(pathString.IsValidRelativeFilePath());
                return(new RelativeFilePath(pathString));
            }
            public IAbsoluteFilePath GetChildFilePath(string fileName)
            {
                //Debug.Assert(fileName != null); // Enforced by contract
                //Debug.Assert(fileName.Length > 0); // Enforced by contract

                var pathString = PathBrowsingHelpers.GetChildFileWithName(this, fileName);

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

                return(new AbsoluteFilePath(pathString));
            }