You could submit it as an Article or a Tip:
Submit a new Article or Tip[
^] provided that it is original to you and not copied from anyone else (that's called plagiarism, and that gets an immediate ban from the site).
Before you do, please, look at some of the existing articles here to get an idea of the standard we expect.
Here's one of mine:
Using struct and class - what's that all about?[
^]
And here's a tip which is a lot more "code focussed":
Creating a Simple "scratch card" Control in WinForms[
^] and your submission will go to moderation to see if it's suitable for publication yet.
We moderators aren't here to make your life difficult, or to be nasty - quite the reverse, we protect the site from not-ready articles, and authors from the derision and downvotes that poorer articles can receive. And to be a moderator, you have to write articles, so we know what it feels like when you slave away on something and Joe Moron from Stupidity High School, Kansas finds out it's not what he needs to hand in as his homework ... :laugh: