Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Error CS0058
Collapse the table of content
Expand the table of content

Compiler Error CS0058

Inconsistent accessibility: parameter type 'type' is less accessible than delegate 'delegate'

A public construct must return a publicly accessible object.

The following sample generates CS0058:

// CS0058.cs
class MyClass
// try the following line instead
// public class MyClass
{
}

public delegate MyClass MyClassDel();   // CS0058

public class a
{
   public static void Main()
   {
   }
}
Show:
© 2015 Microsoft