Table of Contents

Struct TopLevelTypeName

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

Holds the name of a top-level type. This struct cannot refer to nested classes.

public readonly struct TopLevelTypeName : IEquatable<TopLevelTypeName>
Implements
Inherited Members
Extension Methods

Constructors

TopLevelTypeName(string)

public TopLevelTypeName(string reflectionName)

Parameters

reflectionName string

TopLevelTypeName(string, string, int)

public TopLevelTypeName(string namespaceName, string name, int typeParameterCount = 0)

Parameters

namespaceName string
name string
typeParameterCount int

Properties

Name

public string Name { get; }

Property Value

string

Namespace

public string Namespace { get; }

Property Value

string

ReflectionName

public string ReflectionName { get; }

Property Value

string

TypeParameterCount

public int TypeParameterCount { get; }

Property Value

int

Methods

Equals(TopLevelTypeName)

public bool Equals(TopLevelTypeName other)

Parameters

other TopLevelTypeName

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(TopLevelTypeName, TopLevelTypeName)

public static bool operator ==(TopLevelTypeName lhs, TopLevelTypeName rhs)

Parameters

lhs TopLevelTypeName
rhs TopLevelTypeName

Returns

bool

operator !=(TopLevelTypeName, TopLevelTypeName)

public static bool operator !=(TopLevelTypeName lhs, TopLevelTypeName rhs)

Parameters

lhs TopLevelTypeName
rhs TopLevelTypeName

Returns

bool