6.5.4. Language Representation for C#/.NETΒΆ

The description in this chapter refers to RFGs generated by csharp2rfg. A software system S written in C# is analyzed based on:

  • the source code of S,

  • metadata from all non-source .NET assemblies referenced by S, and

  • (optionally) the bytecode of all .NET assemblies referenced by S.

Assemblies in bytecode format, generated from the source code of S by a compiler such as the Microsoft C# or Mono compiler, are referred to as source assemblies in this document. For each source assembly and referenced assembly, an node-assembly Assembly node is created in the Assembly and Assembly References views of the RFG. To set the attributes of these nodes, several assembly properties (such as the full name) are read from both source and referenced assemblies. All other facts are obtained by processing the source code of the system.