Show / Hide Table of Contents

Class TypeKindInfo

Inheritance
Object
TypeKindInfo
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Mangrove.MetricSetSyntaxTree.ExpressionNodes
Assembly: MetricSetSyntaxTree.dll
Syntax
public static class TypeKindInfo

Properties

View Source

NonNullableEquivalent

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
  1. Non-nullable types map to themselves.
  2. If a type does not have a non-nullable equivalent, the function returns Unknown.
View Source

NonNullableTypes

All non-nullable types.

Declaration
public static IImmutableSet<TypeKind> NonNullableTypes { get; }
Property Value
Type Description
IImmutableSet<TypeKind>
Remarks

Unknown and None are neither nullable nor non-nullable.

View Source

NullableEquivalent

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
  1. Already nullable types map to themselves.
  2. If a type does not have a nullable equivalent, the function returns Unknown.
View Source

NullableTypes

All nullable types.

Declaration
public static IImmutableSet<TypeKind> NullableTypes { get; }
Property Value
Type Description
IImmutableSet<TypeKind>
Remarks

Unknown and None are neither nullable nor non-nullable.

  • View Source
Back to top Generated by DocFX