class MyBase { protected object PropertyOfBase { get; set; } } class MyType : MyBase { void MyMethod(MyBase parameter) { // I am looking for:
As you are inheriting from MyBase, you can access all fields/properties/methods from it marked as "protected" using the "base" keyword.
public class MyBase { protected object PropertyOfBase { get; set; } } public class MyType : MyBase { void MyMethod() { object p = base.PropertyOfBase; } }