AsmResolver.Net.Signatures.TypeNameParser.ReadTypeDefOrRefSignature C# (CSharp) Method

ReadTypeDefOrRefSignature() private static method

private static ReadTypeDefOrRefSignature ( IResolutionScope scope, string name, int &position ) : TypeDefOrRefSignature
scope IResolutionScope
name string
position int
return TypeDefOrRefSignature
        private static TypeDefOrRefSignature ReadTypeDefOrRefSignature(IResolutionScope scope, string name, ref int position)
        {
            TypeReference type = null;

            while (position < name.Length)
            {
                var typeName = ReadTypeName(name, ref position);
                type = CreateTypeReference(type ?? scope, typeName);

                if (position < name.Length && name[position] == '+')
                    position++;
                else
                    break;
            }

            return new TypeDefOrRefSignature(type);
        }