Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | SDKs | SDKs

NEWBIE: Anyone got a working Visual Basic .NET example?

1 reply [Last post]
  • Login or register to post comments
Fri, 03/15/2013 - 13:19
cranz
Offline
Joined: 03/15/2013
Groups: None

Not that steady coding C#. Would be nice if someone could help me a bit :)

Top
  • Login or register to post comments
Fri, 03/22/2013 - 07:24
john
Offline
Joined: 01/05/2012
Groups: None

I haven't written VB.NET in a while, but will see what I can do. I just noticed that I haven't actually installed VB... I just found http://www.developerfusion.com/tools/convert/csharp-to-vb/. A snippet from the getting started guide translated well:

public static class CouchbaseManager
{
   private readonly static CouchbaseClient _instance;
 
   static CouchbaseManager()
   {
       _instance = new CouchbaseClient();
   }
 
   public static CouchbaseClient Instance { get { return _instance; } }
}

VB.NET ->

Public NotInheritable Class CouchbaseManager
	Private Sub New()
	End Sub
	Private Shared ReadOnly _instance As CouchbaseClient
 
	Shared Sub New()
		_instance = New CouchbaseClient()
	End Sub
 
	Public Shared ReadOnly Property Instance() As CouchbaseClient
		Get
			Return _instance
		End Get
	End Property
End Class

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker