If you want to see how someone codes, ask them for a sample of code that they wrote under realistic circumstances. On a white board in front of strangers who are only there to judge is not a realistic circumstance. A realistic circumstance involves the candidate's preferred development environment and tools.
It is not always possible for job seekers to share code they've written in the past, not everyone has time or interest in side projects, and none of our employers allow us to share the code we write for them, but it is always possible to ask people to add a feature to some library you maintain or write a small demo program.