VB.Net Tutorial/Class Module/Friend — различия между версиями

Материал из VB Эксперт
Перейти к: навигация, поиск
м (1 версия)
 
(нет различий)

Текущая версия на 12:55, 26 мая 2010

Friend members are available to any object in the same assembly (Friend is referred to as internal in C#)

Public Class SomeClassInMyAssembly
    
    Friend vFriend As Integer
End Class

protected friend members are available to any object that is in the same assemby or inherits from this class, or both.

Public Class SomeClassInMyAssembly
    
    Protected Friend vProtectedFriend As Integer
End Class