You can access the internal
members within the assembly you declared them in other classes. Since your inter data member is instance member you need to create instance of Example in a class you want CommonHome
Example ex = new Example();
string s = ex.CommonHome;
You probably need to give type of CommonHome
which is string I guess
Class Example
{
internal string CommonHome = "C:/myfile/";
}
You better use property for CommonHome instead of public data member as you may need to apply some business rule later to this. This is a very good post about the properties, Why Properties Matter.
Class Example
{
internal string CommonHome { get; set; }
internal Example()
{
CommonHome = "C:/myfile/";
}
}
The internal keyword is an access modifier for types and type members.
Internal types or members are accessible only within files in the same
assembly, MSDN.
You can read more about access modifiers here.