Vixen
02b45cc4
csharp
public readonly struct Conversion

The result of classifying a conversion. Cost ranks candidates during overload resolution — lower is a better match, and an identity conversion costs nothing.

No guide page documents this yet — the page shows what the code says about itself.

Fields and properties (7)

  • public static readonly Conversion None
  • public static readonly Conversion Identity
  • public ConversionKind Kind
  • public bool Exists
  • public bool IsImplicit
  • public bool IsIdentity

    True when the conversion changes representation and must be materialized.

  • public int Cost

    Ranking for overload resolution; only meaningful for implicit conversions.

Methods (2)

  • public Conversion(ConversionKind kind)
  • public override string ToString()

Used by (5)

  • BinderVixen.Raven
  • BoundConversionExpressionVixen.Raven
  • ConversionsVixen.Raven
  • LowererVixen.Raven
  • TypeSystemTestsVixen.Raven.Tests