Exemplo n.º 1
0
        private void WritePresentationOptionsAttribute(BamlPresentationOptionsAttribute node)
        {
            BeginVarSize();

            _blob.WriteLengthPrefixedString(ref _pos, (string)node.Value);
            _blob.Write(ref _pos, (short)GetStringId(node.Name));

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

            var node = new BamlPresentationOptionsAttribute();

            node.Value = _accessor.ReadLengthPrefixedString(Encoding.UTF8);
            node.Name  = GetString(_accessor.ReadInt16());

            AddNode(node);
        }