private void WriteTextWithConverter(BamlTextWithConverter node) { BeginVarSize(); _blob.WriteLengthPrefixedString(ref _pos, (string)node.Value); _blob.Write(ref _pos, (short)GetTypeId(node.ConverterType)); WriteVarSize(RecordType.TextWithConverter); }
private void ReadTextWithConverter() { ReadRecordSize(); var node = new BamlTextWithConverter(); node.Value = _accessor.ReadLengthPrefixedString(Encoding.UTF8); node.ConverterType = GetType(_accessor.ReadInt16()); AddNode(node); }