Exemplo n.º 1
0
 /// <summary>
 /// 改变文件名。
 /// </summary>
 /// <exception cref="ArgumentNullException">
 /// <paramref name="newFileName"/> is null.
 /// </exception>
 /// <param name="newFileName">给定的新 <see cref="FileNameCombiner"/>。</param>
 /// <returns>返回当前 <see cref="FilePathCombiner"/>。</returns>
 public FilePathCombiner ChangeFileName(FileNameCombiner newFileName)
 {
     FileName = newFileName.NotNull(nameof(newFileName));
     return(this);
 }
 /// <summary>
 /// 当作数组。
 /// </summary>
 /// <param name="combiner">给定的 <see cref="FileNameCombiner"/>。</param>
 /// <returns>返回 <see cref="FileNameCombiner"/> 集合。</returns>
 public static FileNameCombiner[] AsArray(this FileNameCombiner combiner)
 {
     combiner.NotNull(nameof(combiner));
     return(new FileNameCombiner[] { combiner });
 }