If you were at a comedy club and heckling the performer, calling you this may be OK. At a Professional event with presumed professional people, this is so very wrong on so many levels. Did you provoke him? Pull a Kanye and jump on stage? Seriously.
We women have so much further to go especially in the tech industry to gain respect. I can empathize with you. I have had male managers ask me if it was “that time”. if I disagreed with them. I have been told that as a woman I am too emotional to be a manager. I have been ignored at client meetings where they addressed the junior male developer about the product I built.
The real icing on the cake though is being reprimanded or ridiculed in front of your colleagues and when you politely tell the manager in question that his behavior was inappropriate he says, “Buck up, grow a thicker skin, none of the guys would have even noticed or cared if I said that to them. Really, so expecting people to conduct themselves in a civilized manner is a girl thing now? I guess I missed that memo.
I empathize with you and all the females who have ever had to go through this. The gender issue aside, it is just a rude thing to say in a public setting. Especially a professional event. I would have been less restrained. You showed that you have more class, and I commend you.