Click here to Skip to main content
15,885,546 members
Articles / Programming Languages / C#

Building .NET Coverage Tool

Rate me:
Please Sign up or sign in to vote.
4.94/5 (34 votes)
25 Aug 2009MIT8 min read 84.8K   2.3K   109  
This article is a walkthrough for building a .NET coverage tool
//-----------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation.  All Rights Reserved.
//
//-----------------------------------------------------------------------------
using System;

namespace Microsoft.Cci.Pdb {
  internal struct DbiDbgHdr {
    internal DbiDbgHdr(BitAccess bits) {
      bits.ReadUInt16(out snFPO);
      bits.ReadUInt16(out snException);
      bits.ReadUInt16(out snFixup);
      bits.ReadUInt16(out snOmapToSrc);
      bits.ReadUInt16(out snOmapFromSrc);
      bits.ReadUInt16(out snSectionHdr);
      bits.ReadUInt16(out snTokenRidMap);
      bits.ReadUInt16(out snXdata);
      bits.ReadUInt16(out snPdata);
      bits.ReadUInt16(out snNewFPO);
      bits.ReadUInt16(out snSectionHdrOrig);
    }

    internal ushort snFPO;                 // 0..1
    internal ushort snException;           // 2..3 (deprecated)
    internal ushort snFixup;               // 4..5
    internal ushort snOmapToSrc;           // 6..7
    internal ushort snOmapFromSrc;         // 8..9
    internal ushort snSectionHdr;          // 10..11
    internal ushort snTokenRidMap;         // 12..13
    internal ushort snXdata;               // 14..15
    internal ushort snPdata;               // 16..17
    internal ushort snNewFPO;              // 18..19
    internal ushort snSectionHdrOrig;      // 20..21
  }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The MIT License


Written By
Software Developer (Senior)
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions