예제 #1
0
        private void WritePIMapping(BamlPIMapping node)
        {
            BeginVarSize();

            _blob.WriteLengthPrefixedString(ref _pos, (string)node.XmlNamespace);
            _blob.WriteLengthPrefixedString(ref _pos, (string)node.ClrNamespace);
            _blob.Write(ref _pos, (short)GetAssemblyId(node.Assembly));

            WriteVarSize(RecordType.PIMapping);
        }
예제 #2
0
        private void ReadPIMapping()
        {
            ReadRecordSize();

            var node = new BamlPIMapping();

            node.XmlNamespace = _accessor.ReadLengthPrefixedString(Encoding.UTF8);
            node.ClrNamespace = _accessor.ReadLengthPrefixedString(Encoding.UTF8);
            node.Assembly     = GetAssembly(_accessor.ReadInt16());

            AddNode(node);
        }