Table of Contents

Class MinimalCorlib

Namespace
ICSharpCode.Decompiler.TypeSystem.Implementation
Assembly
ICSharpCode.Decompiler.dll

An artificial "assembly" that contains all known types (KnownTypeCode) and no other types. It does not contain any members.

public sealed class MinimalCorlib : IModule, ISymbol, ICompilationProvider
Inheritance
MinimalCorlib
Implements
Inherited Members
Extension Methods

Fields

Instance

Minimal corlib instance containing all known types.

public static readonly IModuleReference Instance

Field Value

IModuleReference

Properties

Compilation

Gets the parent compilation. This property never returns null.

public ICompilation Compilation { get; }

Property Value

ICompilation

TopLevelTypeDefinitions

Gets all non-nested types in the assembly.

public IEnumerable<ITypeDefinition> TopLevelTypeDefinitions { get; }

Property Value

IEnumerable<ITypeDefinition>

TypeDefinitions

Gets all types in the assembly, including nested types.

public IEnumerable<ITypeDefinition> TypeDefinitions { get; }

Property Value

IEnumerable<ITypeDefinition>

Methods

CreateWithTypes(IEnumerable<KnownTypeReference>)

public static IModuleReference CreateWithTypes(IEnumerable<KnownTypeReference> types)

Parameters

types IEnumerable<KnownTypeReference>

Returns

IModuleReference

GetTypeDefinition(TopLevelTypeName)

public ITypeDefinition GetTypeDefinition(TopLevelTypeName topLevelTypeName)

Parameters

topLevelTypeName TopLevelTypeName

Returns

ITypeDefinition