B
burrows.stephen
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.
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.
parameter,
Code:
public void Test (List<Client> temp)
{
this.ClaimBindingSource.DataSource = temp;
}
The idea is then to bind it for a data report.
But upon trying to compile i get the following error
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>)'
If I use an ArrayList I do not get this problem any help would be great.