Visual Basic Modifier
|
C# Modifier
|
Definition
|
Public (Visual Basic)
|
public
|
The type or member can be accessed by any other code in the same
assembly or another assembly that references it.
|
Private (Visual Basic)
|
private
|
The type or member can only be accessed by code in the same
class.
|
Protected (Visual Basic)
|
protected
|
The type or member can only be accessed by code in the same
class or in a derived class.
|
Friend (Visual Basic)
|
internal
|
The type or member can be accessed by any code in the same
assembly, but not from another assembly.
|
Protected Friend
|
protected internal
|
The type or member can be accessed by any code in the same
assembly, or by any derived class in another assembly.
|
Welcome to our developer-centric oasis! Dive into our blog where we unravel complexities, offer insightful tutorials, and share expert tips to help you navigate the ever-evolving world of coding. Whether you're a seasoned developer seeking advanced techniques or a beginner taking your first steps into the vast realm of programming, our articles are tailored to empower and inspire you on your journey.
Wednesday, 3 April 2013
Access modifiers in c#
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment