Class TypeKindInfo
Inherited Members
Namespace: Mangrove.MetricSetSyntaxTree.ExpressionNodes
Assembly: MetricSetSyntaxTree.dll
Syntax
public static class TypeKindInfo
Properties
View SourceNonNullableEquivalent
Mapping from nullable to non-nullable version of all types.
Declaration
public static Func<TypeKind, TypeKind> NonNullableEquivalent { get; }
Property Value
Type | Description |
---|---|
Func<TypeKind, TypeKind> |
Remarks
- Non-nullable types map to themselves.
- If a type does not have a non-nullable equivalent, the function returns Unknown.
NonNullableTypes
All non-nullable types.
Declaration
public static IImmutableSet<TypeKind> NonNullableTypes { get; }
Property Value
Type | Description |
---|---|
IImmutableSet<TypeKind> |
Remarks
View SourceNullableEquivalent
Mapping from non-nullable to nullable version of all types.
Declaration
public static Func<TypeKind, TypeKind> NullableEquivalent { get; }
Property Value
Type | Description |
---|---|
Func<TypeKind, TypeKind> |
Remarks
- Already nullable types map to themselves.
- If a type does not have a nullable equivalent, the function returns Unknown.
NullableTypes
All nullable types.
Declaration
public static IImmutableSet<TypeKind> NullableTypes { get; }
Property Value
Type | Description |
---|---|
IImmutableSet<TypeKind> |