How do I make a dash attack while doing a top down 2d game

So far I have top-down movement for my character where I can move up, down, left, right, and at angles. What I want to add is a dash attack in the direction your moving. I hoping to learn how to make a dash so that I could have my player (a square) dash through the enemies and destroy them. if anyone could help me or show me the code on how to make a top-down 2d dash? I’ve spent some time in c# but is by far nowhere near good so anything will help

Here you go also I have created my own 3d dash code too if you want i can mail you.