-1
namespace DataAccessLayer
{
    public class PaymentDAL
    {

     public void InsertInGenLedDet(GenLedDet genLedDet)
        {
        }

}

My Class GenLedDet is present inside Payment namespace

This is my code snippet in the Data Layer and this code is being used . Don't know why this error is coming as i do have another function where no such error is showing

vini
  • 4,657
  • 24
  • 82
  • 170

2 Answers2

3

As the error is trying to tell you, you cannot make a public function that takes a non-public class as a parameter.

SLaks
  • 868,454
  • 176
  • 1,908
  • 1,964
0

Instead of

private class GenLedDet {

use

public class GenLedDet {
Lajos Arpad
  • 64,414
  • 37
  • 100
  • 175