Home    
Log In    
Share Code    
Join    

Navigation
 Skip Navigation Links.

Forums
Skip Navigation Links.

Search

 

Advertisement
 
VB.NET Source Code > Making a Property part public and part protected Source Code
Details
Author: ptaylor
Views: 261

Making a Property part public and part protected
Description
This is how to write a property that is partly Public and Partly Protected/Private

In the example the Read/Get property is Public and the Write/Set property is Protected/Private

 
 
Code:
Public Property NextOrderNo() As Int32
    Get

    End Get
    Protected Friend Set(ByVal value As Int32) 'Write is only usable from this class (is private/protected)

    End Set
End Property

Date Added: 18/07/2009 15:33:44





Comments


If you log in you can add a comment of your own!
 
 
Welcome Guest
 
  Log In Name
 
  Password
 
 
Statistics
Your Details: Not Logged In
  Join Date: N/A
  Last Logon: N/A
  Code Snippets: N/A
  Code Comments: N/A
  Forum Posts: N/A
  Forum Subjects: N/A

Site Wide
  Code Snippets: 32
  Code Comments: 2
  Forum Posts: 52
  Forum Subjects: 24
 
Random Code
Detect an image resolution
How to Detect an images resolution

Language: ASP.NET

 
Advertisement


All the Source Code and Tutorials on this site are free for you to use as you require.