Advertisement
Mad_Joker

BoolExtensions

Apr 26th, 2023
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.29 KB | None | 0 0
  1.     public static class BoolExtensions
  2.     {
  3.         /// <summary>
  4.         /// b == true ? 't' : 'f';
  5.         /// </summary>
  6.         /// <param name="b"></param>
  7.         /// <returns></returns>
  8.         public static char ToChar(this bool b) =>  
  9.             b == true ? 't' : 'f';
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement