|
I'm working on becoming as familiar with C# as I am with VB.NET (the language used at my workplace). One of the best things about the learning process is that by learning about the other language you tend to learn more about your primary language--little...
Started by Yoooder on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Omitting WithEvents doesn't block members from raising events, it just stops... .
Assuming the class has public events and we're not modifying it, you can't stop someone from adding an event handler .
In C# you simply wouldn't add a handler for any events .
|
|
Does the VB.NET 2008 compiler selectively optimize Select Case Statements?
For example, a Select Case Statement with a sufficient quantity of integer cases could be organized as a binary search.
I ask this because I am curious whether or not I should ...
Started by hamlin11 on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Unless this switch is inside a loop which is being executed 1000's (millions?) of times, this is highly unlikely to be ... .
In general, you should worry about code readability and maintainability over and above this sort of performance micro-optimisation .
|
|
Before answering this question, understand that I am not asking how to create my own programming language, I am asking how, using vb.net code, I can create a compiler for a language like vb.net itself. Essentially, the user inputs code, they get a .exe...
Started by Cyclone on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
It seems that you want to learn how compilers work, and writing a VB.net compiler is your that parsed code....
You need goal.
You create a compiler for vb.net the same way you create any other compiler.
Lua, etc.
|
Ask your Facebook Friends
|
I'm migrating data from an old laptop to a new laptop, including some vb.net projects in visual studio 2008. But when I try to open some of them on the new laptop, I quickly get a dialog stating that the vb compiler has crashed and asking me if I want...
Started by Strilanc on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Not my fault!.
I can finally blame it on the compiler.
Of the bug doesn't cause the C# compiler to crash.
|
|
I have a class that inherits from a base class and implements the following...
Public Function CompareTo(ByVal obj As Object) As Integer Implements System.IComparable.CompareTo
Now the base class it inherits from also implements this System.IComparable...
Started by Sean Gough on
, 6 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Public Shadows Function CompareTo(ByVal obj....
Hope it helps, Bruno Figueiredo http://www.brunofigueiredo.com
Add the keyword Shadows to the function definition .
On the properties of your project, go to the build tab and use the suppress warnings textbox .
|
|
So,
Visual studio just started throwing " error BC30037: Character is not valid. " at me (while validating a web site) whenever I use the nullable operator anywhere within one of my VB.NET 3.5 projects. This happened to a colleague some months ago but...
Started by Cory Larson on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The web site project needs to be instructed which version of the compiler the issue:
<system.codedom> <compilers> <compiler language="vb;vbs;visualbasic;vbscript.
I figured it out.
|
|
I got a Utility module since VB.NET doesn't have static class like C# and Module is the static class in VB.NET. The reason that I use module is because I'm using the Extension method and it can only be use in Module.
I can't reference to this module but...
Started by Jack on
, 8 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
VB.NET does have static classes, just like in C#, because in VB.NET a Module IS a static other times ....
The VB.NET compiler will take this
Public Module CoreModule Dim R As New System.Random are asking.
From Microsoft BASIC.
|
|
Hey, how this is written in VB.NET? This was an example I found on http://www.codeproject.com/KB/silverlight/SynchronousSilverlight.aspx .
ThreadPool.QueueUserWorkItem(delegate { var channelFactory = new ChannelFactory<ISimpleService>("*"); var ...
Started by sv88erik on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
To convert that syntax to VB.NET you have to move, since anonymous methods in C# are really....
Good code samples):
VB.NET doesn't support anonymous methods, which are supported in C# by using the delegate {} syntax to define an inline method.
|
|
How can I build a Project programattically in VB.NET ?
Answer Snippets (Read the full thread at stackoverflow):
The following.
You might also be able to run vbc, which is the VB compiler.
A log file for output.
|
|
To compile my current project, one exe with ~90,000 loc + ~100 DLL's it takes about a half hour or more depending on the speed of the workstation.
The build process is one of running devenv from Powershell scripts. This works very well with no problems...
Answer Snippets (Read the full thread at stackoverflow):
Also, using a fast 10K RPM hard disk makes a big difference... .
You mentioned that getting a faster PC is not an option, but how much memory do you have? 2GB should be the minimum for a developer machine .
There's NAnt , and Cruisecontrol.NET for continuous build.
|