G
Guest
How is it possible to us a property from a nested class.
Example:
namespace MyApp
{
public class MaxLength
{
public class Project
{
private const int _projectNumber = 3;
private const int _projectName = 20;
public int ProjectNumber
{
get { return _projectNumber; }
}
public int ProjectName
{
get { return _projectName; }
}
}
}
}
I want to use this object in my console application.
MyApp.MaxLength.Project.ProjectNumber
The properties in this nested subclass are not visible why??They are
declared as public.
Example:
namespace MyApp
{
public class MaxLength
{
public class Project
{
private const int _projectNumber = 3;
private const int _projectName = 20;
public int ProjectNumber
{
get { return _projectNumber; }
}
public int ProjectName
{
get { return _projectName; }
}
}
}
}
I want to use this object in my console application.
MyApp.MaxLength.Project.ProjectNumber
The properties in this nested subclass are not visible why??They are
declared as public.