Click here to Skip to main content
15,888,454 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: application not running without visual studio Pin
Ron Beyer21-Jan-14 5:30
professionalRon Beyer21-Jan-14 5:30 
GeneralRe: application not running without visual studio Pin
tgkkishore22-Jan-14 4:26
tgkkishore22-Jan-14 4:26 
GeneralRe: application not running without visual studio Pin
Ron Beyer22-Jan-14 5:01
professionalRon Beyer22-Jan-14 5:01 
AnswerRe: application not running without visual studio Pin
Shameel27-Jan-14 4:22
professionalShameel27-Jan-14 4:22 
QuestionWebService Problem Pin
angelo8714-Jan-14 12:24
angelo8714-Jan-14 12:24 
AnswerRe: WebService Problem Pin
Dave Kreskowiak14-Jan-14 14:09
mveDave Kreskowiak14-Jan-14 14:09 
AnswerRe: WebService Problem Pin
Bernhard Hiller14-Jan-14 20:54
Bernhard Hiller14-Jan-14 20:54 
SuggestionRe: WebService Problem Pin
Richard Deeming15-Jan-14 0:49
mveRichard Deeming15-Jan-14 0:49 
As New is still supported in VB.NET, but the behaviour has been cleaned up.

In VB6, the variable would be treated as an auto-instantiated variable. This would result in poor performance and unexpected behaviour, as every reference to the variable would be changed to check for Nothing and assign the variable:
VB
Dim x As New Foo
Set x = Nothing
If Not(x Is Nothing) Then
    MsgBox "Boom!"
End If

'Becomes:

Dim x As Foo

If x Is Nothing Then Set x = New Foo
Set x = Nothing

If x Is Nothing Then Set x = New Foo
If Not (x Is Nothing) Then
    MsgBox "Boom!"
End If


In VB.NET, the syntax behaves exactly as you described, and the whole "auto-instantiated variable" mess has been removed.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: WebService Problem Pin
Dave Kreskowiak15-Jan-14 3:34
mveDave Kreskowiak15-Jan-14 3:34 
GeneralRe: WebService Problem Pin
Eddy Vluggen15-Jan-14 5:01
professionalEddy Vluggen15-Jan-14 5:01 
GeneralRe: WebService Problem Pin
Dave Kreskowiak15-Jan-14 6:52
mveDave Kreskowiak15-Jan-14 6:52 
Questionlinq to entity Pin
Member 1050774910-Jan-14 2:46
Member 1050774910-Jan-14 2:46 
AnswerRe: linq to entity Pin
Simon_Whale10-Jan-14 3:08
Simon_Whale10-Jan-14 3:08 
AnswerRe: linq to entity Pin
Dave Kreskowiak10-Jan-14 5:31
mveDave Kreskowiak10-Jan-14 5:31 
QuestionPass arguments Pin
byka10-Jan-14 2:21
byka10-Jan-14 2:21 
AnswerRe: Pass arguments Pin
Shameel10-Jan-14 2:42
professionalShameel10-Jan-14 2:42 
GeneralRe: Pass arguments Pin
byka10-Jan-14 3:05
byka10-Jan-14 3:05 
AnswerRe: Pass arguments Pin
Shameel10-Jan-14 3:11
professionalShameel10-Jan-14 3:11 
QuestionHow to Convert Pdf to Html ? Pin
Sumit Rastogi SRA9-Jan-14 1:55
professionalSumit Rastogi SRA9-Jan-14 1:55 
AnswerRe: How to Convert Pdf to Html ? Pin
Manfred Rudolf Bihy9-Jan-14 2:38
professionalManfred Rudolf Bihy9-Jan-14 2:38 
Questionnot able to open excel hyperlink provided in PPT in asp.net form Pin
ven7539-Jan-14 0:11
ven7539-Jan-14 0:11 
AnswerRe: not able to open excel hyperlink provided in PPT in asp.net form Pin
Shameel10-Jan-14 2:46
professionalShameel10-Jan-14 2:46 
QuestionHow to convert PPT to mht format in Office 2010 / 2013 to use in Asp.net web application Pin
ven7536-Jan-14 22:41
ven7536-Jan-14 22:41 
AnswerRe: How to convert PPT to mht format in Office 2010 / 2013 to use in Asp.net web application Pin
Chris Quinn7-Jan-14 0:02
Chris Quinn7-Jan-14 0:02 
GeneralRe: How to convert PPT to mht format in Office 2010 / 2013 to use in Asp.net web application Pin
ven7537-Jan-14 0:18
ven7537-Jan-14 0:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.