Maybe have fun when questions like that arise. Reply with a question "are you flirting with me?" or "Wow, nice pickup line." or just say Yes and watch them squirm uncomfortably :D

I think it would apply whether a guy or girl asks. And who knows, maybe get yourself a date at the same time.