HI all I have a Method that I wish to pass a generic List as a parameter,
The idea is then to bind it for a data report.Code:public void Test (List<Client> temp) { this.ClaimBindingSource.DataSource = temp; }
But upon trying to compile i get the following error
If I use an ArrayList I do not get this problem any help would be great.Error 1 Inconsistent accessibility: parameter type 'System.Collections.Generic.List<Indemnity_System.Client>' is less accessible than method 'Indemnity_System.ReportView.Test(System.Collections.Generic.List<Indemnity_System.Client>)'
![]()
![]()
![]()




Reply With Quote