Exemplo n.º 1
0
        private void WriteTextWithConverter(BamlTextWithConverter node)
        {
            BeginVarSize();

            _blob.WriteLengthPrefixedString(ref _pos, (string)node.Value);
            _blob.Write(ref _pos, (short)GetTypeId(node.ConverterType));

            WriteVarSize(RecordType.TextWithConverter);
        }
Exemplo n.º 2
0
        private void ReadTextWithConverter()
        {
            ReadRecordSize();

            var node = new BamlTextWithConverter();

            node.Value         = _accessor.ReadLengthPrefixedString(Encoding.UTF8);
            node.ConverterType = GetType(_accessor.ReadInt16());

            AddNode(node);
        }