Here are the examples of the csharp api string.TrimNullChars() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
19
Source : Tools.cs
with MIT License
from GTA-ASM
with MIT License
from GTA-ASM
public static String ReadString(this BinaryReader reader, int length)
{
var bytes = reader.ReadBytes(length);
return Encoding.UTF8.GetString(bytes).TrimNullChars();
}