Static / Shared block
-
Can we have a static block in VB.net just like we have in java ? If yes can you please provide me a syntax for it !
-
Can we have a static block in VB.net just like we have in java ? If yes can you please provide me a syntax for it !
Your question gives the answer. A static method or property in VB is called Shared.
Christian Graus Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
-
Can we have a static block in VB.net just like we have in java ? If yes can you please provide me a syntax for it !
A 'static' initializer block in Java is really just a static constructor. So... class Foo { static { ... } } just converts to: Friend Class Foo Shared Sub New() ... End Sub End Class (via 'Java to VB & C# Converter') David Anton http://www.tangiblesoftwaresolutions.com C++ to C# Converter C++ to VB Converter C++ to Java Converter VB & C# to Java Converter Java to VB & C# Converter Instant C#: VB to C# converter Instant VB: C# to VB converter Instant C++: convert VB, C#, or Java to C++/CLI
-
A 'static' initializer block in Java is really just a static constructor. So... class Foo { static { ... } } just converts to: Friend Class Foo Shared Sub New() ... End Sub End Class (via 'Java to VB & C# Converter') David Anton http://www.tangiblesoftwaresolutions.com C++ to C# Converter C++ to VB Converter C++ to Java Converter VB & C# to Java Converter Java to VB & C# Converter Instant C#: VB to C# converter Instant VB: C# to VB converter Instant C++: convert VB, C#, or Java to C++/CLI
ok thanks i go through it
-
Your question gives the answer. A static method or property in VB is called Shared.
Christian Graus Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
thanks Christian Graus