示例#1
0
        string ReadId(bool ignoreWhiteSpace)
        {
            SkipWhite();
            StringBuilder?sb = ObjectPools.AllocStringBuilder();
            int           c;

            while ((c = GetIdChar(ignoreWhiteSpace)) != -1)
            {
                sb.Append((char)c);
            }
            Verify(sb.Length > 0, "Expected an id");
            return(ObjectPools.FreeAndToString(ref sb));
        }
示例#2
0
        string ReadAssemblyNameId()
        {
            SkipWhite();
            StringBuilder?sb = ObjectPools.AllocStringBuilder();
            int           c;

            while ((c = GetAsmNameChar()) != -1)
            {
                sb.Append((char)c);
            }
            var name = ObjectPools.FreeAndToString(ref sb).Trim();

            Verify(name.Length > 0, "Expected an assembly name");
            return(name);
        }