AlbLib.Texts.TextCore.TrimNull C# (CSharp) Method

TrimNull() public static method

Creates a string from character array up to first null character.
public static TrimNull ( char chars ) : string
chars char /// Source character array. ///
return string
        public static string TrimNull(char[] chars)
        {
            StringBuilder str = new StringBuilder(chars.Length);
            foreach(char ch in chars)
            {
                if(ch == '\0')break;
                str.Append(ch);
            }
            return str.ToString();
        }

Same methods

TextCore::TrimNull ( string str ) : string