示例#1
0
        private void WriteStaticResource(BamlStaticResource node)
        {
            _blob.Write(ref _pos, (byte)RecordType.StaticResourceStart);
            _blob.Write(ref _pos, (short)GetTypeId(node.Type));
            _blob.Write(ref _pos, (byte)node.Flags);

            BeginScope(node, RecordType.StaticResourceEnd);
        }
示例#2
0
        private void ReadStaticResource()
        {
            var node = new BamlStaticResource();

            node.Type  = GetType(_accessor.ReadInt16());
            node.Flags = (BamlElementFlags)_accessor.ReadByte();

            AddNode(node);
            BeginScope(node, RecordType.StaticResourceEnd);
        }