private XamlTypeName CollectNameFromStack ()
{
if (this._stack.Count != 1) {
throw new TypeNameParserException(SR.Get("InvalidTypeString", new object[] { this._inputText }));
}
TypeNameFrame frame = this._stack.Peek();
if (frame.TypeArgs.Count != 1) {
throw new TypeNameParserException(SR.Get("InvalidTypeString", new object[] { this._inputText }));
}
return frame.TypeArgs[0];
}