Click here to Skip to main content
15,891,847 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
using System;
namespace PRCR
{
    public delegate void ValueUpdatedEventHandler(object sender, ValueUpdatedEventArgs e);
//error :----- Inconsistent accessibility: parameter type 'PRCR.ValueUpdatedEventArgs' is less accessible than delegate 'PRCR.ValueUpdatedEventHandler'

}


please help

thanks in advance
Posted

1 solution

What access level has your class ValueUpdatedEventArgs ?
You have to define it as:
C#
public class ValueUpdatedEventArgs : EventArgs
{
 // ...
}
 
Share this answer
 
v2
Comments
Manfred Rudolf Bihy 7-Aug-11 13:12pm    
Absolutely correct! 5+ Proposed as the solution.
Besides that, the answer really was there in the error message. I guess some people just can"t be bothered to do even the most basic research.
Kim Togo 8-Aug-11 2:23am    
Thanks Manfred.
Sergey Alexandrovich Kryukov 7-Aug-11 13:35pm    
Error message is self-describing. My 5.
--SA
Kim Togo 8-Aug-11 2:23am    
Thanks SA
Richard X Menezes 7-Aug-11 14:54pm    
The error clear says what one had to do...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900