Conversion.IsPointer Property

Definition

Returns true if the conversion is a pointer conversion

C#
public bool IsPointer { get; }

Property Value

Remarks

Pointer conversions are described in section 18.4 of the C# language specification.

Returns true if the conversion is a conversion a) from a pointer type to void*, b) from a pointer type to another pointer type (other than void*), c) from the null literal to a pointer type, d) from an integral numeric type to a pointer type, e) from a pointer type to an integral numeric type, or d) from a function pointer type to a function pointer type.

Does not return true for user-defined conversions to/from pointer types. Does not return true for conversions between pointer types and IntPtr/UIntPtr.

Applies to

Produkt Verzie
Roslyn 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.3.1, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.8.0, 3.9.0, 3.10.0, 3.11.0, 4.0.1, 4.1.0, 4.12.2, 4.13.0