-> Operator (C# Reference)

The pointer member access operator -> combines pointer indirection and member access.

If x is a pointer of the type T* and y is an accessible member of T, an expression of the form


is equivalent to


The -> operator requires unsafe context.

For more information, see How to: access a member with a pointer.

Operator overloadability

The -> operator cannot be overloaded.

C# language specification

For more information, see the Pointer member access section of the C# language specification.

See also