Build and Run C# Samples

To build and run each sample in C#, here are the steps:

1. Create a new project:



2. Add a new class and name it as common.cs:


3. Copy the common library code from: and paste it into common.cs

4. Copy the C# sample and paste it into program.cs, for example:

5. Add System.Management as reference:

That is it. The sample project is ready to run.



Comments (1)

  1. Anonymous says:

    simple but good advice

Skip to main content