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); }
private void ReadStaticResource() { var node = new BamlStaticResource(); node.Type = GetType(_accessor.ReadInt16()); node.Flags = (BamlElementFlags)_accessor.ReadByte(); AddNode(node); BeginScope(node, RecordType.StaticResourceEnd); }