From GDScript to C#

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By VarionDrakon

I apologize again for the stupid requests. But how is it:

 if "Entity" in getslidecollision(i)

Turn it into C# code?

:bust_in_silhouette: Reply From: MajorBarnulf

I don’t know the context in which you uses it, but I would say :

if ( ((Node)GetSlideCollision(i).Collider).Name.Contains("Entity") ) {

    // stuff