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); }
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); }