public XamlTypeName ParseName (string text, out string error) { error = string.Empty; this._scanner = new GenericTypeNameScanner(text); this._inputText = text; this.StartStack(); try { this._scanner.Read(); this.P_XamlTypeName(); if (this._scanner.Token != GenericTypeNameScannerToken.NONE) { this.ThrowOnBadInput(); } } catch (TypeNameParserException exception) { error = exception.Message; } XamlTypeName name = null; if (string.IsNullOrEmpty(error)) { name = this.CollectNameFromStack(); } return name; }