Пример #1
0
        /// <summary>
        /// a DirName joined to a DirPath forms a longer DirPath.
        /// </summary>
        /// <param name="InDirPath"></param>
        /// <param name="InDirName"></param>
        /// <returns></returns>
        public static DirPath operator +(DirPath InDirPath, DirName InDirName)
        {
            string dirPath = Path.Combine(InDirPath.ToString( ), InDirName.ToString());

            return(new DirPath(dirPath));
        }
Пример #2
0
        /// <summary>
        /// a FileName joined to a DirPath forms a FullPath
        /// </summary>
        /// <param name="InDirPath"></param>
        /// <param name="InFileName"></param>
        /// <returns></returns>
        public static FullPath operator +(DirPath InDirPath, FileName InFileName)
        {
            string fullPath = Path.Combine(InDirPath.ToString(), InFileName.ToString());

            return(new FullPath(fullPath));
        }