How to make semisolid platforms

Does anyone have any idea how to make those platform game ledges that you can stand on but also jump through from below or jump down off of, I'm not sure what their called but someone must know what I'm talking about.

By the way I'm using the C# port though it shouldn't matter too much.
If player is holding down when they presses jump, check if they are standing on a semisolid platform. If they are then you need to store a pointer to the platform and throw out any collisions between the player and the platform until they are no longer colliding with it. For the player jumping up you can probably just check if the player collides with a semisolid platform when they were moving in the up direction, and just handle it the same way. Does that help?
Thanks, I think I know what to try now
I think you need something more robust than that. What if you are jumping then start falling before you get past the top of the platform? according to that rule you'll end up in a collision in the middle of the platform.

However,
viewtopic.php?f=8&t=1748&p=10048&hilit=mario#p10048

There's a link further down showing you how to do it.
You could try creating a number of sensors above and below the platform at a distance equal to the height of the player, to see whether the player is coming from the top or from the bottom.

Touching the bottom sensor would make the platform "unsolid/transparent" (for a while), until the player touches the top sensor. That way, if the player starts falling down before it/he has reached the top, no collision is triggered.

Original thread: https://box2d.org/forum/viewtopic.php?t=2456