Describes conversion between types possible during comparison.
Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public enum ConversionKindFields
| Name | Description |
|---|---|
| Default | Accepts any value that is type-compatible, including boxing conversions, but excluding user-defined implicit operators. This corresponds to the behavior of C# |
| Implicit | Accepts any value implicitly convertible to the given type, including boxing and user-defined implicit operators. This corresponds to C# value assignability. |
| ImplicitReference | |
| Reference | Accepts any value that is reference-compatible with the given type i.e. instances of subclasses or interface implementations, but refuses boxing conversions. |
| TypeDefinition | Accepts any value that extends or implements a type that is of the same type definition as the given type definition. |