Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

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()
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.