Not that steady coding C#. Would be nice if someone could help me a bit :)
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
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 ->