Is there any way in C# to specify a method that can be accessed only from derived classes of the same assembly without using internal
access modifier?
Thanks.
You have to specify both internal as well as protected.
Give the scope of the class as internal and method scope as protected
Internal class Myclass
{
Protected void MyMethod()
{
//Do something
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With