示例#1
0
 /// <summary>
 /// 小文字変換
 /// </summary>
 /// <param name="s">入力文字列</param>
 /// <param name="direction">入出力方向</param>
 /// <returns>出力文字列</returns>
 public static string ToLower(string s, IOFilterDirection direction)
 => direction.IsOutput() ? s : s.ToLower();
示例#2
0
 /// <summary>
 /// 末尾の空白文字を除去する
 /// </summary>
 /// <param name="s">入力文字列</param>
 /// <param name="direction">入出力方向</param>
 /// <returns>出力文字列</returns>
 public static string TrimEnd(string s, IOFilterDirection direction)
 => direction.IsOutput() ? s : s.TrimEnd();
示例#3
0
文件: Enums.cs 项目: tricogimmick/wpf
 /// <summary>
 /// 出力?
 /// </summary>
 /// <param name="direction">IOフィルター入出力方向</param>
 /// <returns>True : 出力 / False : 入力</returns>
 public static bool IsOutput(this IOFilterDirection direction)
 {
     return(direction == IOFilterDirection.Output);
 }