internal static void PrivateProtected()
        {
            var baseClass = new BasePrivateProtected();

            baseClass.DoAnything();

            var privateProtecedDemo = new InheritedInSameAssembly();

            privateProtecedDemo.GetDataFromBase();
        }
示例#2
0
 void DoSomething(BasePrivateProtected basePrivateProtectedClass)
 {
     basePrivateProtectedClass.DoAnything();
 }