C# Object Declarations

Posted by pm_2 on Stack Overflow See other posts from Stack Overflow or by pm_2
Published on 2010-04-28T11:50:57Z Indexed on 2010/04/28 11:53 UTC
Read the original article Hit count: 308

Filed under:
|
|

Are there any overheads to using the following sytax:

Form1 myForm = new Form1();
myForm.Show();

As opposed to:

Form1 myForm;
myForm = new Form1();
myForm.Show();

When I was learning VB6, I was told doing the quivelent in VB had an overhead - is the same true in .NET?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET