public class A { protected int prop1 {get;set;}//accessible in class } public class B :A { //this class can access prop1 } public class c { //as this class is not deriving from class , it not allowed to access prop1 }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)