Open sandboxFocus

Enum SpecialType

Identifies well-known types for efficient type checking without string comparisons.

Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public enum SpecialType
Remarks

Use SpecialType to check if a type is one of the well-known types, or Equals(SpecialType) for comparison. Use GetType(SpecialType) to obtain an IType for a special type.

Fields

Name Description
Boolean

bool.

Byte

byte.

Char

char.

Count

Number of items in this enumeration.

Decimal

decimal.

Double

double.

Enum

Enum, which is the base type of an enum.

FlagsAttribute

FlagsAttribute, which marks an enum whose members are combined as a bit field.

IAsyncEnumerable_T

System.Collections.Generic.IAsyncEnumerable>T<.

IAsyncEnumerator_T

System.Collections.Generic.IAsyncEnumerator>T<.

IEnumerable

IEnumerable.

IEnumerable_T

IEnumerable<T>.

IEnumerator

IEnumerator.

IEnumerator_T

IEnumerator<T>.

Int16

short.

Int32

int.

Int64

long.

List_T

List<T>.

MulticastDelegate

MulticastDelegate, which is the base type of a delegate.

None

Not a special type.

Nullable_T
Object

object.

SByte

sbyte.

Single

float.

String

string.

StringBuilder

StringBuilder, which is the parameter type of the PrintMembers method that the compiler synthesizes for a record.

Task

Task.

Task_T

Task<TResult>.

Type

Type.

UInt16

ushort.

UInt32

uint.

UInt64

ulong.

ValueTask

System.Threading.Tasks.ValueTask.

ValueTask_T

System.Threading.Tasks.ValueTask>T<.

ValueTuple

ValueTuple (empty value tuple).

ValueType

ValueType, which is the base type of a struct.

Void

Void.

See Also