Identifies well-known types for efficient type checking without string comparisons.
Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public enum SpecialTypeRemarks
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 | |
| Double | |
| IAsyncEnumerable_T |
|
| IAsyncEnumerator_T |
|
| IEnumerable | |
| IEnumerable_T | |
| IEnumerator | |
| IEnumerator_T | |
| Int16 | |
| Int32 | int. |
| Int64 | long. |
| List_T | |
| None | Not a special type. |
| Nullable_T | |
| Object | |
| SByte | |
| Single | |
| String | |
| Task | Task. |
| Task_T | |
| Type | Type. |
| UInt16 | |
| UInt32 | uint. |
| UInt64 | |
| ValueTask |
|
| ValueTask_T |
|
| ValueTuple | ValueTuple (empty value tuple). |
| Void | Void. |