// Token: 0x060020F4 RID: 8436 RVA: 0x00097968 File Offset: 0x00095B68
        public void WriteText(string textContent, string typeConverterAssemblyName, string typeConverterName)
        {
            this.VerifyWriteState();
            this.ProcessMarkupExtensionNodes();
            Type converterType = null;

            if (!string.IsNullOrEmpty(typeConverterName))
            {
                converterType = this.GetType(typeConverterAssemblyName, typeConverterName);
            }
            XamlTextNode xamlTextNode = new XamlTextNode(0, 0, this._depth, textContent, converterType);

            this._bamlRecordWriter.WriteText(xamlTextNode);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Write text content into baml stream
        /// </summary>
        public void WriteText(
            string textContent,
            string typeConverterAssemblyName,
            string typeConverterName)
        {
            VerifyWriteState();
            ProcessMarkupExtensionNodes();

            Type typeConverter=null;
            if (!String.IsNullOrEmpty(typeConverterName))
            {
                typeConverter = GetType(typeConverterAssemblyName, typeConverterName);
            }

            XamlTextNode textNode = new XamlTextNode(
                                             0,
                                             0,
                                             _depth,
                                             textContent,
                                             typeConverter);
            _bamlRecordWriter.WriteText(textNode);
        }