Skip to content

Inconsistent accessibility

A Repasky

Asked Apr 9, 2013, 8:18 AM EDT1 answer
Share
LinkedInX
I am getting this:

Error 1 Inconsistent accessibility: parameter type 'System.Collections.Generic.List<DetailReport.DetailRecord>' is less accessible than method 'DetailReport.GenExcel.CreateContentRow(int, System.Collections.Generic.List<DetailReport.DetailRecord>, System.Collections.Generic.List<int>)' C:\CLI\CS\DetailReport\GenExcel.cs 1161 25 DetailReport

On this:


public static Row CreateContentRow(int index, DetailRecord det, List<int> setNumber)

with the call:

Row

I know I have to make something public, but what?


Thanks,

arep

contentRow = GenExcel.CreateContentRow(index, det, setNumber);

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    I had to make the class DetailRecord public.  I never had to before.
    arep
    0