G
Guest
I want to confirm my understanding about access modifier for property.
Assembly One contains:
Class One has Protected property Protected1_prop
Class Two has Friend property Friend2_prop
Class Three has Protected Friend property Protected_Friend3_prop
Class Four has Private property Private4_prop
Class Derived_One is a class derived from Class One of Assembly One
Class Derived_Two is a class derived from Class Two of Assembly One
Class Derived_Three is a class derived from Class Three of Assembly One
Class Derived_Four is a class derived from Class Four of Assembly One
Assembly Two contains:
Class Derived_One is a class derived from Class One of Assembly One
Class Derived_Two is a class derived from Class Two of Assembly One
Class Derived_Three is a class derived from Class Three of Assembly One
Class Derived_Four is a class derived from Class Four of Assembly One
Protected1_prop can be accessed by code in:
-Class One of Assembly One
-Class Derived_One of Assembly One
-Class Derived_One of Assembly Two
Friend2_prop can be accessed by code in:
-Assembly One
Protected_Friend3_prop can be accessed by code in:
-Assembly One
-Class Derived_Three of Assembly Two
Private4_prop can be accessed by code in:
-Class Four of Assembly One
It seems that Property Windows can only access Public properties.
Is that a way to declare a property of a custom windows control (control
inherited from existing windows control or composite control) so that only
the form containing the instance of that control can access that property.
Assembly One contains:
Class One has Protected property Protected1_prop
Class Two has Friend property Friend2_prop
Class Three has Protected Friend property Protected_Friend3_prop
Class Four has Private property Private4_prop
Class Derived_One is a class derived from Class One of Assembly One
Class Derived_Two is a class derived from Class Two of Assembly One
Class Derived_Three is a class derived from Class Three of Assembly One
Class Derived_Four is a class derived from Class Four of Assembly One
Assembly Two contains:
Class Derived_One is a class derived from Class One of Assembly One
Class Derived_Two is a class derived from Class Two of Assembly One
Class Derived_Three is a class derived from Class Three of Assembly One
Class Derived_Four is a class derived from Class Four of Assembly One
Protected1_prop can be accessed by code in:
-Class One of Assembly One
-Class Derived_One of Assembly One
-Class Derived_One of Assembly Two
Friend2_prop can be accessed by code in:
-Assembly One
Protected_Friend3_prop can be accessed by code in:
-Assembly One
-Class Derived_Three of Assembly Two
Private4_prop can be accessed by code in:
-Class Four of Assembly One
It seems that Property Windows can only access Public properties.
Is that a way to declare a property of a custom windows control (control
inherited from existing windows control or composite control) so that only
the form containing the instance of that control can access that property.