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
TypeWithoutAnnotation
public IType TypeWithoutAnnotation { get; }
Property Value
Methods
AcceptVisitor(TypeVisitor)
public override IType AcceptVisitor(TypeVisitor visitor)
Parameters
visitor
TypeVisitor
Returns
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
Equals(IType)
public override bool Equals(IType other)
Parameters
other
IType
Returns
ToString()
public override string ToString()
Returns
VisitChildren(TypeVisitor)
public override IType VisitChildren(TypeVisitor visitor)
Parameters
visitor
TypeVisitor