예제 #1
0
        private void ReadLineNumberAndPosition()
        {
            var node = new BamlLineNumberAndPosition();

            node.LineNumber = _accessor.ReadInt32();
            node.LineOffset = _accessor.ReadInt32();

            AddNode(node);
        }
예제 #2
0
 private void WriteLineNumberAndPosition(BamlLineNumberAndPosition node)
 {
     _blob.Write(ref _pos, (byte)RecordType.LineNumberAndPosition);
     _blob.Write(ref _pos, (int)node.LineNumber);
     _blob.Write(ref _pos, (int)node.LineOffset);
 }