Class Annotations::Nullability
A structured type annotation representing type nullability.
For example, IDictionary<string!,string?>? has nullability <!,?>?.
Import path
import semmle.code.csharp.AnnotatedTypeDirect supertypes
Indirect supertypes
Known direct subtypes
Fields
Predicates
| getBit | Gets the bit position in the bit-field, also used to order the annotations in the text format. |
| getSelfNullability | Gets a string representing the nullability, disregarding child nullability. For example, |
| toString | Gets a string representation of this type annotation. |
Inherited predicates
| getPrefix | Gets the string prefixing the type, if any. | from TypeAnnotation |
| getSuffix | Gets the string suffixing the type, if any. | from TypeAnnotation |