See
How to use ArcGIS samples
for help on compiling, setting up the debugger, and running the sample.
If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders.
However, you will need to update the sample to point to the location of the data once you have extracted all the files.
Register the CustomGxObject_CS.dll. For more information, see "How to register COM components" in the following "See Also" section in this sample.
Start an ArcCatalog session and browse to a text file (*.txt) in the tree view.
Select the Text tab to view the contents of the file.