Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace Nut.Base
- {
- public static class StringExt
- {
- /// <summary>
- /// Checks to see if a string is null or empty.
- /// </summary>
- /// <param name="x"></param>
- /// <returns></returns>
- public static bool CheckIfStringHasValue(this string x) => string.IsNullOrEmpty(x) ? true : false;
- /// <summary>
- /// Get the length of a string.
- /// </summary>
- /// <param name="x"></param>
- /// <returns></returns>
- public static int GetStringLength(this string x) => x.Length;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement