Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.31 KB | None | 0 0
  1. Imports System
  2.  
  3. Public Module Program
  4.     Public Shared Sub Main (ByVal args As String())
  5.         Dim x As Integer = 0
  6.  
  7.         Console.WriteLine (x)
  8.  
  9.         Test (x)
  10.         Console.WriteLine (x)
  11.  
  12.         Test ((x))
  13.         Console.WriteLine (x)
  14.     End Sub
  15.  
  16.     Public Shared Sub Test (ByRef x As Integer)
  17.         x = x + 1
  18.     End Sub
  19. End Module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement