假定有一组特性和性质,解析器池应该从内部池中返回一个解析器,如果内部池中没有解析器,那么解析器池应该创建并保存一个新的解析器实例。
Given a set of features and properties, the parser pool should either return a parser from an internal pool or create and store a new parser instance if one does not exist.
其中的主要原因在于WPF设计器已经拥有了自己的解析器,而重写该解析器以使用这个公共解析器将要花费大量时间。
A major reason for this is that the WPF designers already have their own parsers and rewriting them to use the common parser will take a significant amount of time.
因为还要将该实例传递给解析器,所以解析器的操作将停止。
Since this instance was passed to the parser as well, the parser operation will stop.
应用推荐