C# Programming
10-12-2009, 04:01 PM
I want to have a class name Faculty with some memeber properties. One of the property is a (list of student classes) List. I have a student class (as given below).
When I compile I get the following error:
"Inconsistent accessibility: parameter type 'NestedClass.myStudent' is less accessible than method 'NestedClass.myFacultyMember.AddMyNewItem"
What am I doing wrong?
Cannot we access user defined data types (in this case a class object) within a class from outside?
Thank you in advance!
------------student class-----------------------
When I compile I get the following error:
"Inconsistent accessibility: parameter type 'NestedClass.myStudent' is less accessible than method 'NestedClass.myFacultyMember.AddMyNewItem"
What am I doing wrong?
Cannot we access user defined data types (in this case a class object) within a class from outside?
Thank you in advance!
------------student class-----------------------