Skip to content
  • Features
  • Business
  • Explore
  • Marketplace
  • Pricing
Sign in or Sign up
  • Watch 196
  • Star 684
  • Fork 1,386

dotnet/docs

Code Issues 280 Pull requests 36 Projects 21 Wiki Insights
Permalink
Switch branches/tags
  • Branches
  • Tags
BreadcrumbTest JRAlexander-patch-1 Petermarcu-patch-1 UpdateOSX apiFilter blackdwarf-patch-1 dev-langs-test dev-langs dfm-latest dfm live mairaw-patch-3-1 mairaw-patch-6 mairaw-patch-10 mairaw-patch-11 mairaw-test-asterisk mairaw-test-build mairaw-test-cli mairaw-test-empty-uid mairaw-test-error-msg markdig master-skip-upload master merge-test migrateNewQueriesCSharpVB migration_csharpvb_reexport migration_csharpvb migration_framework migration_vcppdocs nextdocs nokura-patch-1 ol-dry-run preview project.json rel/netcore-1.0.0 revert-2090-CITest revert-3125-patch-2 seopreview split stevewhims-master/fixing-entities testLoc tianzhDevelop tools-index-page v-jacard-patch-1 vscod yishengjin1413-patch-1 ymlExport
Nothing to show
VS2017
Nothing to show
Find file
docs/docs/visual-basic/language-reference/statements/codesnippet/VisualBasic/synclock-statement_1.vb
Fetching contributors…
Cannot retrieve contributors at this time
Raw Blame History
13 lines (13 sloc) 504 Bytes
Class simpleMessageList
Public messagesList() As String = New String(50) {}
Public messagesLast As Integer = -1
Private messagesLock As New Object
Public Sub addAnotherMessage(ByVal newMessage As String)
SyncLock messagesLock
messagesLast += 1
If messagesLast < messagesList.Length Then
messagesList(messagesLast) = newMessage
End If
End SyncLock
End Sub
End Class
  • Copy lines
  • Copy permalink
  • View git blame
  • Open new issue
  • © 2017 GitHub, Inc.
  • Terms
  • Privacy
  • Security
  • Status
  • Help
  • Contact GitHub
  • API
  • Training
  • Shop
  • Blog
  • About
You can't perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.