Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Code from Project 1
- namespace FirstAssembly
- {
- public class FirstClass
- {
- private protected static void FirstMethod()
- {
- Console.WriteLine("Private protected method called...");
- }
- }
- }
- // Code from Project 2
- using FirstAssembly;
- namespace SecondAssembly
- {
- public class SecondClass : FirstClass
- {
- public static void SecondMethod()
- {
- FirstMethod(); // No access to the base class since it is private protected.
- }
- }
- }
Add Comment
Please, Sign In to add comment