MetalamaAPI documentationAspect APIMetalama.​Framework.​CodeConversion­Kind
Open sandboxFocus

ConversionKind Class

Describes conversion between types possible during comparison.

Inheritance
System.Object
ConversionKind
Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public sealed class ConversionKind : Enum

Fields

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# is operator.

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.

value__