DynamicRest.JsonReader.GetCharacters C# (CSharp) Method

GetCharacters() private method

private GetCharacters ( int count ) : string
count int
return string
        private string GetCharacters(int count)
        {
            string s = String.Empty;
            for (int i = 0; i < count; i++) {
                char ch = (char)_reader.Read();
                if (ch == '\0') {
                    return null;
                }
                s += ch;
            }
            return s;
        }