System Namespace
The exception that is thrown when there is an illegal attempt to access a private or protected method inside a class.
This exception is typically thrown when the access level of a method in a class library is changed, and one or more assemblies referencing the library have not been recompiled.
MethodAccessException uses the HRESULT COR_E_METHODACCESS, that has the value 0x80131510.
For a list of initial property values for an instance of MethodAccessException, see the MethodAccessException constructors.
Exception