Click or drag to resize

Conversion Class



Summarizes whether a conversion is allowed, and if so, which kind of conversion (and in some cases, the associated symbol).
Inheritance Hierarchy
SystemValueType
  Microsoft.CodeAnalysis.VisualBasicConversion

Namespace:  Microsoft.CodeAnalysis.VisualBasic
Assembly:  Microsoft.CodeAnalysis.VisualBasic (in Microsoft.CodeAnalysis.VisualBasic.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public sealed class Conversion : ValueType, 
	IEquatable

The Conversion type exposes the following members.

Properties
  NameDescription
Public propertyExists
Returns True if the conversion exists, either as a widening or narrowing conversion.
Public propertyIsAnonymousDelegate
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.
Public propertyIsArray
Returns True if this conversion is a widening array conversion or a narrowing array conversion, as defined in section 8.5.
Public propertyIsBoolean
Returns True if this conversion is a narrowing boolean conversion, as defined in section 8.2.
Public propertyIsDefault
Returns True if this conversion is a default conversion (a conversion from the "Nothing" literal).
Public propertyIsIdentity
Returns True if this conversion is an identity conversion.
Public propertyIsLambda
Returns True if this is a lambda conversion.
Public propertyIsNarrowing
Returns True if this conversion a narrowing conversion, and not a widening conversion.
Public propertyIsNullableValueType
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.
Public propertyIsNumeric
Returns True if this conversion is a widening numeric conversion or a narrowing numeric conversion, as defined in section 8.3.
Public propertyIsReference
Returns True if this conversion is a widening reference conversion or narrowing reference conversion, as defined in section 8.4.
Public propertyIsString
Returns True if this conversion a widening string conversion or a narrowing string conversion as defined in section 8.7.
Public propertyIsTypeParameter
Returns True if this conversion a widening type parameter or a narrowing type parameter conversion, as defined in section 8.10.
Public propertyIsUserDefined
Returns True if this conversion a widening user defined or a narrowing user defined conversion, as defined in section 8.11.
Public propertyIsValueType
Returns True if this conversion a widening value type conversion or a narrowing value type conversion as defined in section 8.6.
Public propertyIsWidening
Returns True if this conversion is a widening conversion, and not a narrowing conversion.
Public propertyMethodSymbol
Returns the method that defines the user defined conversion, if any. Otherwise returns Nothing.
Top
Methods
  NameDescription
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
Public methodEquals(Conversion)
Determines whether the specified object is equal to the current object.
Public methodGetHashCode
Returns a hash code for the current object.
Public methodToString
Returns a string that represents the current object.
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Returns True if two Conversion values are equal.
Public operatorStatic memberInequality
Returns True if two Conversion values are not equal.
Top
See Also