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.CSharpConversion

Namespace:  Microsoft.CodeAnalysis.CSharp
Assembly:  Microsoft.CodeAnalysis.CSharp (in Microsoft.CodeAnalysis.CSharp.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 an implicit or explicit conversion.
Public propertyIsAnonymousFunction
Returns true if the conversion is an implicit anonymous function conversion.
Public propertyIsBoxing
Returns true if the conversion is an implicit boxing conversion.
Public propertyIsConstantExpression
Returns true if the conversion is an implicit constant expression conversion.
Public propertyIsDynamic
Returns true if the conversion is an implicit dynamic conversion.
Public propertyIsEnumeration
Returns true if the conversion is an implicit enumeration conversion or explicit enumeration conversion.
Public propertyIsExplicit
Returns true if the conversion is explicit.
Public propertyIsIdentity
Returns true if the conversion is an identity conversion.
Public propertyIsImplicit
Returns true if the conversion is implicit.
Public propertyIsInterpolatedString
Returns true if the conversion is an interpolated string conversion.
Public propertyIsIntPtr
Returns true if the conversion is a conversion to or from IntPtr or UIntPtr.
Public propertyIsMethodGroup
Returns true if the conversion is an implicit method group conversion.
Public propertyIsNullable
Returns true if the conversion is an implicit nullable conversion or explicit nullable conversion.
Public propertyIsNullLiteral
Returns true if the conversion is an implicit null literal conversion.
Public propertyIsNumeric
Returns true if the conversion is an implicit numeric conversion or explicit numeric conversion.
Public propertyIsPointer
Returns true if the conversion is a pointer conversion
Public propertyIsReference
Returns true if the conversion is an implicit reference conversion or explicit reference conversion.
Public propertyIsThrow
Returns true if the conversion is an implicit throw conversion.
Public propertyIsTupleConversion
Returns true if the conversion is an implicit tuple conversion or explicit tuple conversion.
Public propertyIsTupleLiteralConversion
Returns true if the conversion is an implicit tuple literal conversion or explicit tuple literal conversion.
Public propertyIsUnboxing
Returns true if the conversion is an explicit unboxing conversion.
Public propertyIsUserDefined
Returns true if the conversion is an implicit user-defined conversion or explicit user-defined conversion.
Public propertyMethodSymbol
Returns the method used to create the delegate for a method group conversion if IsMethodGroup is true or the method used to perform the conversion for a user-defined conversion if IsUserDefined is true. Otherwise, returns null.
Top
Methods
  NameDescription
Public methodEquals(Object)
Determines whether the specified Conversion object is equal to the current Conversion object.
Public methodEquals(Conversion)
Determines whether the specified Conversion object is equal to the current Conversion object.
Public methodGetHashCode
Returns a hash code for the current Conversion object.
Public methodToString
Returns a string that represents the Kind of the conversion.
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Returns true if the specified Conversion objects are equal and false otherwise.
Public operatorStatic memberInequality
Returns false if the specified Conversion objects are equal and true otherwise.
Top
See Also