Bring the TimeStamp property inside the class

This sample wouldn't compile as is, update the sample code to bring the property inside the class definition.
Merge pull request #2164 from SpencerMacKinnon/patch-1

Bring the TimeStamp property inside the class