Delen via


Conversion Struct

Definition

Summarizes whether a conversion is allowed, and if so, which kind of conversion (and in some cases, the associated symbol).

public value class Conversion : IEquatable<Microsoft::CodeAnalysis::VisualBasic::Conversion>
public struct Conversion : IEquatable<Microsoft.CodeAnalysis.VisualBasic.Conversion>
type Conversion = struct
Public Structure Conversion
Implements IEquatable(Of Conversion)
Inheritance
Conversion
Implements

Properties

Exists

Returns True if the conversion exists, either as a widening or narrowing conversion.

IsAnonymousDelegate

Returns True if this conversion is a widening anonymous delegate conversion as defined in section 8.8, or a narrowing anonymous delegate conversion as defined in section 8.9.

IsArray

Returns True if this conversion is a widening array conversion or a narrowing array conversion, as defined in section 8.5.

IsBoolean

Returns True if this conversion is a narrowing boolean conversion, as defined in section 8.2.

IsDefault

Returns True if this conversion is a default conversion (a conversion from the "Nothing" literal).

IsIdentity

Returns True if this conversion is an identity conversion.

IsLambda

Returns True if this is a lambda conversion.

IsNarrowing

Returns True if this conversion a narrowing conversion, and not a widening conversion.

IsNullableValueType

Returns True if this conversion a widening nullable value type conversion or a narrowing nullable value type conversion as defined in section 8.6.1.

IsNumeric

Returns True if this conversion is a widening numeric conversion or a narrowing numeric conversion, as defined in section 8.3.

IsReference

Returns True if this conversion is a widening reference conversion or narrowing reference conversion, as defined in section 8.4.

IsString

Returns True if this conversion a widening string conversion or a narrowing string conversion as defined in section 8.7.

IsTypeParameter

Returns True if this conversion a widening type parameter or a narrowing type parameter conversion, as defined in section 8.10.

IsUserDefined

Returns True if this conversion a widening user defined or a narrowing user defined conversion, as defined in section 8.11.

IsValueType

Returns True if this conversion a widening value type conversion or a narrowing value type conversion as defined in section 8.6.

IsWidening

Returns True if this conversion is a widening conversion, and not a narrowing conversion.

MethodSymbol

Returns the method that defines the user defined conversion, if any. Otherwise returns Nothing.

Methods

Equals(Conversion)

Determines whether the specified object is equal to the current object.

Equals(Object)

Determines whether the specified object is equal to the current object.

GetHashCode()

Returns a hash code for the current object.

ToCommonConversion()

Creates a CommonConversion from this Visual Basic conversion.

ToString()

Returns a string that represents the current object.

Operators

Equality(Conversion, Conversion)

Returns True if two Conversion values are equal.

Inequality(Conversion, Conversion)

Returns True if two Conversion values are not equal.

Applies to