I am a newbie of C# and MS visual studio, and I want to use the C# class which defined in another file, but can\'t get it work.
Here is the program.cs
program.cs
namespace TestCSharp2 { **public** class Class2 { int i; public void setValue(int i) { this.i = i; } public int getValue() { return this.i; } } }
Add the 'Public' declaration before 'class Class2'.