Created
August 27, 2015 21:55
-
-
Save ChrisMoney/0410b4a52cc55eb87e83 to your computer and use it in GitHub Desktop.
VB - Create Globals for Private Methods
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Private _UserCount as Int32 | |
| Public Property UserCount() as Int32 | |
| Get | |
| If ViewState("UserCount") Is Nothing Then | |
| Return 0 | |
| Else | |
| Return Convert.ToInt32(ViewState("UserCount")) | |
| End If | |
| End Get | |
| Set (ByVal value as Int32) | |
| ViewState("UserCount") = value | |
| End Set | |
| End Property |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment