Partilhar via


CommonConversion Struct

Definition

Represents the common, language-agnostic elements of a conversion.

public value class CommonConversion
public struct CommonConversion
public readonly struct CommonConversion
type CommonConversion = struct
Public Structure CommonConversion
Inheritance
CommonConversion

Remarks

We reserve the right to change this struct in the future.

Properties

ConstrainedToType

Type parameter which runtime type will be used to resolve virtual invocation of the MethodSymbol, if any. Null if MethodSymbol is resolved statically, or is null.

Exists

Returns true if the conversion exists, as defined by the target language.

IsIdentity

Returns true if the conversion is an identity conversion.

IsImplicit

Returns true if the conversion is an implicit (C#) or widening (VB) conversion.

IsNullable

Returns true if the conversion is an nullable conversion.

IsNumeric

Returns true if the conversion is a numeric conversion.

IsReference

Returns true if the conversion is a reference conversion.

IsUserDefined

Returns true if the conversion is a user-defined conversion.

MethodSymbol

Returns the method used to perform the conversion for a user-defined conversion if IsUserDefined is true. Otherwise, returns null.

Applies to