Table of Contents

Class NullabilityAnnotatedType

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

A decorator that annotates the nullability status for a type. Note: ArrayType does not use a decorator, but has direct support for nullability.

public class NullabilityAnnotatedType : DecoratedType, IType, INamedElement, IEquatable<IType>
Inheritance
NullabilityAnnotatedType
Implements
Derived
Inherited Members
Extension Methods

Properties

Nullability

Gets the nullability annotation on this type.

public Nullability Nullability { get; }

Property Value

Nullability

TypeWithoutAnnotation

public IType TypeWithoutAnnotation { get; }

Property Value

IType

Methods

AcceptVisitor(TypeVisitor)

public override IType AcceptVisitor(TypeVisitor visitor)

Parameters

visitor TypeVisitor

Returns

IType

ChangeNullability(Nullability)

Creates a new type that is a copy of this type, with the changed nullability annotation.

public override IType ChangeNullability(Nullability nullability)

Parameters

nullability Nullability

Returns

IType

Equals(IType)

public override bool Equals(IType other)

Parameters

other IType

Returns

bool

ToString()

public override string ToString()

Returns

string

VisitChildren(TypeVisitor)

public override IType VisitChildren(TypeVisitor visitor)

Parameters

visitor TypeVisitor

Returns

IType